This locator is start with root element.
For example, “xpath=//table[@id='table1']/tr/td” is the absolute xpath locator for “link11” element in below html code:
For example, “xpath=//table[@id='table1']/tr/td” is the absolute xpath locator for “link11” element in below html code:
- <table id="table1" border="1" cellspacing="10" cellpadding="10">
- <tbody>
- <tr><td>link11</td><td>link12</td></tr>
- <tr><td>link21</td><td>link22</td></tr>
- </tbody>
- </table>
No comments:
Post a Comment