Difference between webdriver.get() and webdriver.navigate()

前端 未结 14 1427
悲哀的现实
悲哀的现实 2020-11-28 04:27

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

相关标签:
14条回答
  • 2020-11-28 04:54

    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.

    0 讨论(0)
  • 2020-11-28 04:59

    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.

    0 讨论(0)
提交回复
热议问题