What is difference between / & //

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to configure selenium web driver in eclipse?

578


How you can login into any site if it’s showing any authentication popup for password and username?

613


What are the important selenium ide commands or selenese commands?

567


What is exception test in selenium?

640


How to launch a browser using selenium webdriver?

523






What does a single “/” bar in XPath do?

623


What is the difference between assert and verify in selenium?

554


How to check whether a text is underlined or not?

576


What is the super interface of webdriver?

680


What are the advantages and disadvantages of using selenium as testing tool?

563


What is the difference between single and double slash in xpath?

685


Is there an htmlunitdriver for .net?

630


How can I read test data from excels?

568


What are the performance testing tools?

600


What are the advantages of selenium?

679