Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 2

Difference between the driver.

get() and
driver.navigate().to()
driver.get() driver.navigate().to()
• It is used to open the url • It is used to open the url
• Waits until the complete • Not wait until the complete page is
loaded
page is loaded
• It holds the history, so can use back
• Doesn’t hold any history, so
and forward to switch between the
can’t use back and forward open pages
• Can able to interact with • May use explicit waits to interact
the web objects easily. with the web objects.
• Syntax is • Syntax is
driver.get(“https://google.c driver.navigate().to(“https://google.
om”) com”)

You might also like