What is the difference between get()
and navigate()
methods?
Does any of this or maybe another method waits for page content to load?
What do I rea
Otherwise you prob want the get method:
Load a new web page in the current browser window. This is done using an
HTTP GET operation, and the method will block until the load is complete.
Navigate allows you to work with browser history as far as i understand it.
driver.get(url)
and navigate.to(url)
both are used to go to particular web page. The key difference is that
driver.get(url)
: It does not maintain the browser history and cookies and wait till page fully loaded.
driver.navigate.to(url)
:It is also used to go to particular web page.it maintain browser history and cookies and does not wait till page fully loaded and have navigation between the pages back, forward and refresh.