top button

What is the difference between driver.get() and driver.navigate.to()

–1 vote
9 views
posted Apr 25 by Arunkumaarts

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

You can use both methods to navigate to a URL.

Because navigating to a URL is very common, then driver.get() is a convenient way. However, it does the same function as the driver.navigate().to(“url”)

The driver.navigate() also has other functions, such as

driver.navigate().back()
driver.navigate().forward()
driver.navigate().refresh()

answer Apr 26 by Arun
...