Java 类org.openqa.selenium.WebDriver.Navigation 实例源码

项目:senbot    文件:SeleniumNavigationStepsTest.java   
@Test
public void testPageRefresh() {
    final WebDriver mockDriver = mock(WebDriver.class);
    Navigation navigation = mock(Navigation.class);
    when(mockDriver.navigate()).thenReturn(navigation);

    MockSeleniumNavigationStepDefinitions navigationSteps = new MockSeleniumNavigationStepDefinitions(mockDriver);

    navigationSteps.pageRefresh();

    verify(navigation, times(1)).refresh();
}
项目:zucchini    文件:GenericStep.java   
protected Navigation getNavigate() {
    return GenericDriver.getNavigate();
}
项目:zucchini    文件:GenericDriver.java   
public static Navigation getNavigate() {
    return getWebDriver().navigate();
}
项目:mineraloil-selenium    文件:WebdriverActions.java   
public Navigation navigate() {
    return driver.navigate();
}
项目:windowlicker    文件:AsyncWebDriver.java   
public Navigation navigate() {
    return webDriver.navigate();
}
项目:webtester-core    文件:WebDriverBrowserTest.java   
@Test
public void testThatNavigatingBackInvokesCorrectWebDriverMethods() {
    Navigation navigation = mockNavigation();
    cut.navigateBackwards();
    verify(navigation).back();
}
项目:webtester-core    文件:WebDriverBrowserTest.java   
@Test
public void testThatNavigatingForwardsInvokesCorrectWebDriverMethods() {
    Navigation navigation = mockNavigation();
    cut.navigateForwards();
    verify(navigation).forward();
}
项目:webtester-core    文件:WebDriverBrowserTest.java   
@Test
public void testThatRefreshingInvokesCorrectWebDriverMethods() {
    Navigation navigation = mockNavigation();
    cut.refresh();
    verify(navigation).refresh();
}
项目:webtester-core    文件:WebDriverBrowserTest.java   
private Navigation mockNavigation() {
    Navigation navigation = mock(Navigation.class);
    doReturn(navigation).when(webDriver).navigate();
    return navigation;
}
项目:mamute    文件:AcceptanceTestBase.java   
protected Navigation browser() {
    return driver.navigate();
}
项目:Sparkle    文件:DelayedNavigation.java   
/**
 * Creates a new instance of this object with a given navigation object and an
 * event queue.
 * 
 * @param navigation
 *            Navigation object to wrap for delayed event execution
 * @param queue
 *            Event queue to add events to for delayed execution
 */
public DelayedNavigation(final Navigation navigation, final IDelayedEventQueue queue) {
    this.mNavigation = navigation;
    this.mQueue = queue;
}
项目:Sparkle    文件:ForwardEvent.java   
/**
 * Creates a new instance of this object using a given navigation object.
 * 
 * @param navigation
 *            Object to use for navigation, should not be an instance of
 *            {@link de.zabuza.sparkle.webdriver.DelayedNavigation
 *            DelayedNavigation}.
 */
public ForwardEvent(final Navigation navigation) {
    this.mNavigation = navigation;
}
项目:Sparkle    文件:ToUrlEvent.java   
/**
 * Creates a new instance of this object using a given navigation object.
 * 
 * @param navigation
 *            Object to use for navigation, should not be an instance of
 *            {@link de.zabuza.sparkle.webdriver.DelayedNavigation
 *            DelayedNavigation}.
 * @param url
 *            URl to navigate to
 */
public ToUrlEvent(final Navigation navigation, final URL url) {
    this.mNavigation = navigation;
    this.mUrl = url;
}
项目:Sparkle    文件:BackEvent.java   
/**
 * Creates a new instance of this object using a given navigation object.
 * 
 * @param navigation
 *            Object to use for navigation, should not be an instance of
 *            {@link de.zabuza.sparkle.webdriver.DelayedNavigation
 *            DelayedNavigation}.
 */
public BackEvent(final Navigation navigation) {
    this.mNavigation = navigation;
}
项目:Sparkle    文件:RefreshEvent.java   
/**
 * Creates a new instance of this object using a given navigation object.
 * 
 * @param navigation
 *            Object to use for the refresh, should not be an instance of
 *            {@link de.zabuza.sparkle.webdriver.DelayedNavigation
 *            DelayedNavigation}.
 */
public RefreshEvent(final Navigation navigation) {
    this.mNavigation = navigation;
}
项目:Sparkle    文件:ToStringEvent.java   
/**
 * Creates a new instance of this object using a given navigation object.
 * 
 * @param navigation
 *            Object to use for navigation, should not be an instance of
 *            {@link de.zabuza.sparkle.webdriver.DelayedNavigation
 *            DelayedNavigation}.
 * @param url
 *            URl to navigate to
 */
public ToStringEvent(final Navigation navigation, final String url) {
    this.mNavigation = navigation;
    this.mUrl = url;
}
项目:easyium-java    文件:WebDriver.java   
/**
 * An abstraction allowing the driver to access the browser's history and to navigate to a given
 * URL.
 *
 * @return A {@link Navigation} that allows the selection of what to
 * do next
 */
public Navigation navigate() {
    return seleniumWebDriver().navigate();
}