Professional Documents
Culture Documents
Get and Navigate
Get and Navigate
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”)