Styrow.dev
Question 46 of 64

What is difference between get() and navigate()

Question

What is difference between get() and navigate()

Answer

driver.get() and driver.navigateTo() both can be used to navigate to a URL given as a parameter

driver.get() : It opens an URL and it will wait till the whole page gets loaded

driver.navigate.to(): It navigates to an URL and It will not wait till the whole page gets loaded

While using driver.navigate, we can use different navigation methods available such as

driver.navigate.to()

driver.navigate.refresh()

driver.navigate.back()

driver.navigate.forward()