2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

What is the difference between single and double slash in X-path in selenium?

What is the difference between single and double slash in X-path in selenium?
userimage

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

Answer is