07-10-2012, 11:20 PM
Hi,
Consider the below HTML object
<INPUT class="hover" id=1452 size=45 value="Enter id" name=n>
Now we can identify this object using various XPATH combinations.Few examples shared below
By using such XPATHS, we can also limit our object search.For instance;if we want access to an object inside a WebTable Cell, we know that the object will have a parent with a TD html tag.In which case we can use XPATH like
//TD//INPUT[@name='n'
Regards,
Ravi
Consider the below HTML object
<INPUT class="hover" id=1452 size=45 value="Enter id" name=n>
Now we can identify this object using various XPATH combinations.Few examples shared below
- //INPUT[@class='hover']
- //INPUT[@id='1452']
- //INPUT[@id='1452',@class='hover']
By using such XPATHS, we can also limit our object search.For instance;if we want access to an object inside a WebTable Cell, we know that the object will have a parent with a TD html tag.In which case we can use XPATH like
//TD//INPUT[@name='n'
Regards,
Ravi