Id |
Detail |
driver.get(url) |
To open an URL and it will wait till the whole page get loaded. When the page is loading, selenium will not perform any action until the page is fully loaded |
driver.navigate().get(url) |
To navigate to an URL and it will NOT wait till the whole page get loaded |
driver.navigate().forward() |
To navigate to the next web page with reference to the browser’s history |
driver.naviagate().back() |
Take back to the pervious web page with reference to the browser’s history |
driver.naviagate().refresh() |
To refresh the current web page thereby reloading all the web elements |
driver.get(url) VS. driver.navigate.to(url)
最新推荐文章于 2025-05-07 10:28:29 发布