What is difference between / & //



What is difference between / & //..

Answer / lakshmi

/
1.It starts selection from the document node
2. It Allows you to create 'absolute' path expressions
3. e.g “/html/body/p” matches all the paragraph elements
//
1. It starts selection matching anywhere in the document
2. It Allows you to create 'relative' path expressions
3. e.g“//p” matches all the paragraph elements

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Selenium Interview Questions

What are soft assert and hard assert in selenium?

0 Answers  


How can we select elements by their attribute value using css selector?

0 Answers  


Mention what is desired capability? How is it useful in terms of selenium?

0 Answers  


What’s selenese?

0 Answers  


How can one get side to always record an absolute url for the open command's argument?

0 Answers  






What is the difference between selenium and qtp?

0 Answers  


What happen if you mix both implicit wait and explicit wait in a selenium script?

0 Answers  


What is the reason to use the selenium grid?

0 Answers  


What is the use of get options () method?

0 Answers  


What are the different exceptions you have faced in selenium webdriver?

0 Answers  


What if you have written your own element locator and how would you test it?

0 Answers  


What is same origin policy and how it can be handled?

0 Answers  


Categories