TestProject Forum
Powered by leading experts in the test automation community

Selenium driver.get() vs driver.navigate().to()

driver.navigate().to("http://www.google.com"); driver.get("http://www.google.com");

What is the difference between the two?

They are exactly the same.
driver.get is just to make it easier for us.

the driver.navigate has some additional useful methods to navigate between pages e.g.

driver.navigate().back(); driver.navigate().forward();