Selenium WebDriver - Explain the difference between single and double slash in X-path?
Selenium WebDriver Interview question and Answers
(Continued from previous question...)
Selenium WebDriver - Explain the difference between single and double slash in X-path?
Single slash ‘/ ’
Single slash ( / ) start selection from the document node
It allows you to create ‘absolute’ path expressions
Double Slash ‘// ’
Double slash ( // ) start selection matching anywhere in the document
It enables to create ‘relative’ path expressions
(Continued on next question...)
Other Interview Questions
|