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

Tell us how will you use selenium to upload a file?

480


What are the annotations used in testng?

513


What is soft assertion in selenium?

535


What are the different exceptions you got when working with webdriver?

473


Using selenium how can you handle network latency?

527






Tell us how many exceptions do you know in selenium webdriver?

471


How to handle alerts in selenium?

527


What does a concentrator do in the selenium network?

516


How do I upload a file using selenium? I need to upload a word file during test execution.

478


What is the difference between “type” and “type and wait for” command?

522


How to select a value in a dropdown?

561


How to login to any site if it’s showing any authentication popup for

562


What is selenium 1.0?

488


Which of the selector ID, name, XPath or CSS should I use?

513


Describe technical problems that you had with selenium tool?

495