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

Is selenium server needed to run selenium webdriver scripts?

0 Answers  


What are the advantage and features of selenium ide?

0 Answers  


In selenium ide how you can generate random numbers and dates for test data?

1 Answers  


List the different types of drivers in webdriver.

0 Answers  


Explain what is the main difference between web-driver and rc?

0 Answers  






What are the main advantages of automation testing?

0 Answers  


What is pom (page object model)?

0 Answers  


How to test ajax application with selenium?

0 Answers  


What is the use of context menu in selenium ide?

0 Answers  


How to debug the tests in selenium ide?

0 Answers  


How to insert a start point in selenium ide?

0 Answers  


How to pause a test execution for 5 seconds at a specific point?

0 Answers  


Categories