InterviewSolution
| 1. |
What do you mean by a Relative path? |
|
Answer» Relative XPath is a URL that contains a portion of the full path and it is alternatively referred to as a partial path or non-absolute path. A relative path is used to specify the location of a DIRECTORY relative to another directory. A relative path starting from the element you want to refer to and GO from there. Relative XPaths are preferred as they are not complete path and chances of changes are less compared to an absolute path. Its complete location is based on its relation to the directory to which it is linked. Relative XPath starts with Double forward slash(//). For example, for google login PAGE //*[@title=’google’]
|
|