org.openqa.selenium.remote.RemoteWebDriver.executeAsyncScript()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(110)

本文整理了Java中org.openqa.selenium.remote.RemoteWebDriver.executeAsyncScript方法的一些代码示例,展示了RemoteWebDriver.executeAsyncScript的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RemoteWebDriver.executeAsyncScript方法的具体详情如下:
包路径:org.openqa.selenium.remote.RemoteWebDriver
类名称:RemoteWebDriver
方法名:executeAsyncScript

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);
}

相关文章