0 votes
in Selenium by
What is the difference between the “/” and “//” in X path?

1 Answer

0 votes
by

Single Slash “/” –  The Single slash is used to create Xpath with absolute path i.e. the xpath would be created to start selection from the document node/start node.

Double Slash “//” – The Double slash is used to create Xpath with relative path i.e. the xpath would be created to start selection from anywhere within the document.

...