• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java Navigation类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ResourceUsageEmulatorPlugin类代码示例发布时间:2022-05-22
下一篇:
Java ContainersLauncher类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap