• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Selenium by
Q:
Explain the difference between single and double slash in X-path? Single slash ‘/ ’

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

Related questions

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