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

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

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

RemoteWebDriver.getFileDetector介绍

暂无

代码示例

代码示例来源:origin: appium/java-client

@Override
  protected RemoteWebElement newRemoteWebElement() {
    Class<? extends RemoteWebElement> target;
    target = getElementClass(platform, automation);

    try {
      Constructor<? extends RemoteWebElement> constructor = target.getDeclaredConstructor();
      constructor.setAccessible(true);
      RemoteWebElement result = constructor.newInstance();

      result.setParent(driver);
      result.setFileDetector(driver.getFileDetector());

      return result;
    } catch (Exception e) {
      throw new WebDriverException(e);
    }
  }
}

代码示例来源:origin: org.xwiki.platform/xwiki-platform-test-ui

@Override
public FileDetector getFileDetector()
{
  return this.wrappedDriver.getFileDetector();
}

代码示例来源:origin: com.machinepublishers/jbrowserdriver

/**
 * {@inheritDoc}
 */
@Override
public FileDetector getFileDetector() {
 return super.getFileDetector();
}

代码示例来源:origin: fhoeben/hsac-fitnesse-fixtures

@Override
  public T createDriver() {
    T remoteWebDriver = constr.apply(url, capabilities);
    FileDetector fd = remoteWebDriver.getFileDetector();
    if (fd == null || fd instanceof UselessFileDetector) {
      remoteWebDriver.setFileDetector(new LocalFileDetector());
    }
    Environment.getInstance().setSymbol(REMOTE_URL_KEY, url.toString());
    return remoteWebDriver;
  }
}

代码示例来源:origin: io.appium/java-client

@Override
  protected RemoteWebElement newRemoteWebElement() {
    Class<? extends RemoteWebElement> target;
    target = getElementClass(platform, automation);

    try {
      Constructor<? extends RemoteWebElement> constructor = target.getDeclaredConstructor();
      constructor.setAccessible(true);
      RemoteWebElement result = constructor.newInstance();

      result.setParent(driver);
      result.setFileDetector(driver.getFileDetector());

      return result;
    } catch (Exception e) {
      throw new WebDriverException(e);
    }
  }
}

代码示例来源:origin: fhoeben/hsac-fitnesse-fixtures

protected CachingRemoteWebElement createCachingWebElement(RemoteWebElement originalElement) {
    CachingRemoteWebElement element = new CachingRemoteWebElement(originalElement);
    // ensure we always set the correct parent and file detector
    element.setParent(driver);
    element.setFileDetector(driver.getFileDetector());
    return element;
  }
}

代码示例来源:origin: org.uiautomation/ios-client

Object o = c.newInstance(args);
 RemoteWebElement element = (RemoteWebElement) o;
 element.setFileDetector(driver.getFileDetector());
 element.setParent(driver);
 element.setId(ref);
element.setFileDetector(driver.getFileDetector());
element.setId(ref);
element.setParent(driver);

相关文章