本文整理了Java中org.openqa.selenium.remote.RemoteWebDriver.getFileDetector
方法的一些代码示例,展示了RemoteWebDriver.getFileDetector
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RemoteWebDriver.getFileDetector
方法的具体详情如下:
包路径:org.openqa.selenium.remote.RemoteWebDriver
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!