What is the use of driver.get("url") and driver.navigate().to("url") command? Is there any difference between the two?



What is the use of driver.get("url") and driver.navigate().to("url") command? Is..

Answer / Litile Tyagi

In Selenium, driver.get("url") loads a specific webpage by providing the URL, while driver.navigate().to("url") also navigates to a different page but within the same web application.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

How can you insert a start point in selenium ide?

1 Answers  


What do you know about selenium?

1 Answers  


What are the types of assertions there in selenium?

1 Answers  


How to check if a text is highlighted on the page ?

1 Answers  


How to handle ajax calls in selenium webdriver?

1 Answers  


Mention what are the types of listeners in testng?

1 Answers  


What is the use of get options () method?

1 Answers  


Tell me what kind of mouse actions can be performed in selenium?

1 Answers  


How does u get the width of the textbox?

1 Answers  


Explain the difference between single and double slash in x-path?

1 Answers  


What is the difference between getwindowhandles() and getwindowhandle()?

1 Answers  


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

1 Answers  


Categories