本文整理了Java中org.openqa.selenium.remote.RemoteWebDriver.executeAsyncScript
方法的一些代码示例,展示了RemoteWebDriver.executeAsyncScript
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RemoteWebDriver.executeAsyncScript
方法的具体详情如下:
包路径:org.openqa.selenium.remote.RemoteWebDriver
类名称:RemoteWebDriver
方法名:executeAsyncScript
暂无
代码示例来源:origin: org.xwiki.platform/xwiki-platform-test-ui
@Override
public Object executeAsyncScript(String script, Object... args)
{
return this.wrappedDriver.executeAsyncScript(script, args);
}
代码示例来源:origin: org.eclipse.che.selenium/che-selenium-core
@Override
public Object executeAsyncScript(String script, Object... args) {
return driver.executeAsyncScript(script, args);
}
代码示例来源:origin: org.mycore/selenium-utils
public Object executeAsyncScript(String script, Object... args) {
return delegate.executeAsyncScript(script, args);
}
代码示例来源:origin: com.applitools/eyes-selenium-java3
public Object executeAsyncScript(String script, Object... args) {
// Appium commands are sometimes sent as Javascript
if (AppiumJsCommandExtractor.isAppiumJsCommand(script)) {
Trigger trigger =
AppiumJsCommandExtractor.extractTrigger(elementsIds,
driver.manage().window().getSize(), script, args);
if (trigger != null) {
// TODO - Daniel, additional type of triggers
if (trigger instanceof MouseTrigger) {
MouseTrigger mt = (MouseTrigger) trigger;
eyes.addMouseTrigger(mt.getMouseAction(),
mt.getControl(), mt.getLocation());
}
}
}
return driver.executeAsyncScript(script, args);
}
内容来源于网络,如有侵权,请联系作者删除!