本文整理汇总了Java中org.openqa.selenium.WebDriver.Navigation类的典型用法代码示例。如果您正苦于以下问题:Java Navigation类的具体用法?Java Navigation怎么用?Java Navigation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Navigation类属于org.openqa.selenium.WebDriver包,在下文中一共展示了Navigation类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: testPageRefresh
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
@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();
}
开发者ID:gfk-ba,项目名称:senbot,代码行数:13,代码来源:SeleniumNavigationStepsTest.java
示例2: getNavigate
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
protected Navigation getNavigate() {
return GenericDriver.getNavigate();
}
开发者ID:entelgy-brasil,项目名称:zucchini,代码行数:4,代码来源:GenericStep.java
示例3: getNavigate
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
public static Navigation getNavigate() {
return getWebDriver().navigate();
}
开发者ID:entelgy-brasil,项目名称:zucchini,代码行数:4,代码来源:GenericDriver.java
示例4: navigate
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
public Navigation navigate() {
return driver.navigate();
}
开发者ID:lithiumtech,项目名称:mineraloil-selenium,代码行数:4,代码来源:WebdriverActions.java
示例5: navigate
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
public Navigation navigate() {
return webDriver.navigate();
}
开发者ID:google-code-export,项目名称:windowlicker,代码行数:4,代码来源:AsyncWebDriver.java
示例6: testThatNavigatingBackInvokesCorrectWebDriverMethods
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
@Test
public void testThatNavigatingBackInvokesCorrectWebDriverMethods() {
Navigation navigation = mockNavigation();
cut.navigateBackwards();
verify(navigation).back();
}
开发者ID:testIT-WebTester,项目名称:webtester-core,代码行数:7,代码来源:WebDriverBrowserTest.java
示例7: testThatNavigatingForwardsInvokesCorrectWebDriverMethods
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
@Test
public void testThatNavigatingForwardsInvokesCorrectWebDriverMethods() {
Navigation navigation = mockNavigation();
cut.navigateForwards();
verify(navigation).forward();
}
开发者ID:testIT-WebTester,项目名称:webtester-core,代码行数:7,代码来源:WebDriverBrowserTest.java
示例8: testThatRefreshingInvokesCorrectWebDriverMethods
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
@Test
public void testThatRefreshingInvokesCorrectWebDriverMethods() {
Navigation navigation = mockNavigation();
cut.refresh();
verify(navigation).refresh();
}
开发者ID:testIT-WebTester,项目名称:webtester-core,代码行数:7,代码来源:WebDriverBrowserTest.java
示例9: mockNavigation
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
private Navigation mockNavigation() {
Navigation navigation = mock(Navigation.class);
doReturn(navigation).when(webDriver).navigate();
return navigation;
}
开发者ID:testIT-WebTester,项目名称:webtester-core,代码行数:6,代码来源:WebDriverBrowserTest.java
示例10: browser
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
protected Navigation browser() {
return driver.navigate();
}
开发者ID:caelum,项目名称:mamute,代码行数:4,代码来源:AcceptanceTestBase.java
示例11: DelayedNavigation
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
/**
* 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;
}
开发者ID:ZabuzaW,项目名称:Sparkle,代码行数:14,代码来源:DelayedNavigation.java
示例12: ForwardEvent
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
/**
* 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;
}
开发者ID:ZabuzaW,项目名称:Sparkle,代码行数:12,代码来源:ForwardEvent.java
示例13: ToUrlEvent
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
/**
* 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;
}
开发者ID:ZabuzaW,项目名称:Sparkle,代码行数:15,代码来源:ToUrlEvent.java
示例14: BackEvent
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
/**
* 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;
}
开发者ID:ZabuzaW,项目名称:Sparkle,代码行数:12,代码来源:BackEvent.java
示例15: RefreshEvent
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
/**
* 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;
}
开发者ID:ZabuzaW,项目名称:Sparkle,代码行数:12,代码来源:RefreshEvent.java
示例16: ToStringEvent
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
/**
* 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;
}
开发者ID:ZabuzaW,项目名称:Sparkle,代码行数:15,代码来源:ToStringEvent.java
示例17: navigate
import org.openqa.selenium.WebDriver.Navigation; //导入依赖的package包/类
/**
* 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();
}
开发者ID:KarlGong,项目名称:easyium-java,代码行数:11,代码来源:WebDriver.java
注:本文中的org.openqa.selenium.WebDriver.Navigation类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论