Location Strategies
- Choosing a Location Strategy
Navigate Back And Forward On The Browser
Navigating the history of browser can be easily done using below two methods. The names are self explanatory.
//Go back to the last visited page
driver.navigate().back();
//go forward to the next page
driver.navigate().forward();
Refresh Page
This may be required often. Just a simple refresh of the page equivalent to a browser refresh.
driver.navigate().refresh();
Upload A File On A Page
WebDriver Wait
Difference between Explicit and Implicit Wait