本文整理了Java中org.openqa.selenium.remote.RemoteWebDriver.navigate
方法的一些代码示例,展示了RemoteWebDriver.navigate
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RemoteWebDriver.navigate
方法的具体详情如下:
包路径:org.openqa.selenium.remote.RemoteWebDriver
类名称:RemoteWebDriver
方法名:navigate
暂无
代码示例来源:origin: la-team/light-admin
@Override
public Navigation navigate() {
return webDriver.navigate();
}
代码示例来源:origin: org.xwiki.platform/xwiki-platform-test-ui
@Override
public Navigation navigate()
{
return this.wrappedDriver.navigate();
}
代码示例来源:origin: org.eclipse.che.selenium/che-selenium-core
@Override
public Navigation navigate() {
return driver.navigate();
}
代码示例来源:origin: org.mycore/selenium-utils
public Navigation navigate() {
return delegate.navigate();
}
代码示例来源:origin: com.applitools/eyes-selenium-java3
public Navigation navigate() {
return driver.navigate();
}
代码示例来源:origin: com.saucelabs/sebuilder-interpreter
@Override
public boolean run(TestRun ctx) {
ctx.driver().navigate().refresh();
return true;
}
}
代码示例来源:origin: com.saucelabs/sebuilder-interpreter
@Override
public boolean run(TestRun ctx) {
ctx.driver().navigate().forward();
return true;
}
}
代码示例来源:origin: com.saucelabs/sebuilder-interpreter
@Override
public boolean run(TestRun ctx) {
ctx.driver().navigate().back();
return true;
}
}
代码示例来源:origin: com.saucelabs/sebuilder-interpreter
@Override
public boolean run(TestRun ctx) {
Cookie.Builder cb = new Cookie.Builder(ctx.string("name"), ctx.string("value"));
for (String opt : ctx.string("options").split(",")) {
String[] kv = opt.split("=", 2);
if (kv.length == 1) { continue; }
if (kv[0].trim().equals("path")) {
cb.path(kv[1].trim());
}
if (kv[0].trim().equals("max_age")) {
cb.expiresOn(new Date(new Date().getTime() + Long.parseLong(kv[1].trim()) * 1000l));
}
ctx.driver().manage().addCookie(cb.build());
}
ctx.driver().navigate().refresh();
return true;
}
}
代码示例来源:origin: te-con/ehour
public static void reloadPage() {
Driver.navigate().refresh();
}
}
代码示例来源:origin: cloudgrey-io/appiumpro
protected void actualTest(RemoteWebDriver driver) {
WebDriverWait wait = new WebDriverWait(driver, 10);
driver.navigate().to(LOGIN_URL);
wait.until(ExpectedConditions.presenceOfElementLocated(username))
.sendKeys("foo");
driver.findElement(password).sendKeys("bar");
driver.findElement(loginBtn).click();
String errText = wait.until(ExpectedConditions.presenceOfElementLocated(message)).getText();
Assert.assertThat(errText, Matchers.containsString(ERR_MSG));
}
}
内容来源于网络,如有侵权,请联系作者删除!