InterviewSolution
| 1. |
What do you mean by Absolute path? |
|
Answer» ABSOLUTE XPath is a direct way to finding an element and it starts with the root node or a SINGLE forward-slash (/). It is similar to what we do in our system when a particular file path is to be SPECIFIED [eg: D:\photos\new album\myimage.JPG ] and in that case if you move the file to another location [eg: D:\photos\old album\myimage.JPG ] it will not be found correctly by the path, the same applies to the Absolute Xpath concept too, so for any changes made in the application hierarchy which have an impact on that particular element then the XPath of the element will definitely fail. Hence, absolute Xpath is not considered to be a reliable technique to LOCATE an element.
|
|