- Learn Selenium
- Unmesh Gundecha Carl Cocchiaro
- 62字
- 2025-04-04 14:05:28
Listening for browser forward-navigation
This event is very similar to the browser back-navigation, except that this is browser forward-navigation, so it is using driver.navigate().forward(). The two methods associated with this event are:
- public void afterNavigateForward(WebDriver driver)
- public void beforeNavigateForward(WebDriver driver)
Just as in browser back-navigation, these methods are invoked irrespective of whether or not the browser takes you one level forward.