in Selenium by
Q:
Explain the difference between single and double slash in X-path? Single slash ‘/ ’

▼ Show 1 Answer

0 votes
by
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
Selenium
Learn More with Madanswer

Related questions

0 votes
asked Aug 19, 2019 in Selenium by rahulsharma
...