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 can you retrive the message in an alert box?

519


How to handle frame in webdriver?

505


What is the difference between “type” and “typeandwait” command?

1002


Can we enter text without using sendkeys()?

482


What are the different types of wait statements in selenium webdriver? Or how do you achieve synchronization in webdriver?

465






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

530


How to achieve database testing in selenium?

512


How to login into any site if it is showing an authentication pop-up for username and password?

510


What must one set within side in order to run a test from the beginning to a certain point within the test?

482


Explain what are the different types of locators in selenium?

491


What are the different types of drivers available in webdriver?

475


What are the two modes of views in selenium ide?

566


In selenium what are breakpoints and startpoints?

484


Explain junit. What are annotations?

535


How to check the checkbox or radio button is selected?

486