Java Code Examples for org.openqa.selenium.WebDriver#Navigation
The following examples show how to use
org.openqa.selenium.WebDriver#Navigation .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PageStepsTests.java From vividus with Apache License 2.0 | 5 votes |
@Test void testNavigateBack() { WebDriver driver = mock(WebDriver.class); when(webDriverProvider.get()).thenReturn(driver); WebDriver.Navigation navigation = mock(WebDriver.Navigation.class); when(driver.navigate()).thenReturn(navigation); pageSteps.navigateBack(); verify(navigation).back(); }
Example 2
Source File: BrowserTest.java From hsac-fitnesse-fixtures with Apache License 2.0 | 4 votes |
private WebDriver.Navigation getNavigation() { return getSeleniumHelper().navigate(); }
Example 3
Source File: SeleniumHelper.java From hsac-fitnesse-fixtures with Apache License 2.0 | 4 votes |
/** * @return Selenium's navigation. */ public WebDriver.Navigation navigate() { return driver().navigate(); }