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 the performance testing tools?

0 Answers  


What is the command to insert text into the HTML text box using Selenium?

0 Answers  


How can we fetch a text written over an element?

0 Answers  


What is an implicit wait in selenium?

0 Answers  


Explain how can you find broken links in a page using selenium webdriver?

0 Answers  






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

0 Answers  


We do create a reference variable ‘driver’ of type webdriver

0 Answers  


Which is the only browser that supports selenium ide to be used?

0 Answers  


How many types of webdriver api's are available in selenium?

0 Answers  


What automation tools could be used for post-release validation with continuous integration?

0 Answers  


Give the example for method overload in webdriver.

0 Answers  


Tell us how to perform right click using selenium webdriver?

0 Answers  


Categories