Java 类org.openqa.selenium.remote.FileDetector 实例源码

项目:Appium-Sample    文件:Helpers.java   
public static FileDetector fileDetector() {
    return new FileDetector() {
        @Override
        public File getLocalFile(CharSequence... keys) {
            return null;
        }
    };
}
项目:seleniumtestsframework    文件:CustomEventFiringWebDriver.java   
public void setFileDetector(final FileDetector detector) {
    if (detector == null) {
        throw new WebDriverException("file detector is null");
    }

    fileDetector = detector;
}
项目:hsac-fitnesse-fixtures    文件:RemoteDriverFactory.java   
@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;
}
项目:marathonv5    文件:JavaDriver.java   
@Override public void setFileDetector(FileDetector detector) {
    throw new WebDriverException(
            "Setting the file detector only works on remote webdriver instances obtained " + "via RemoteWebDriver");
}
项目:domui    文件:MyChromeDriver.java   
@Override
public void setFileDetector(FileDetector detector) {
    throw new WebDriverException("Setting the file detector only works on remote webdriver instances obtained via RemoteWebDriver");
}
项目:seleniumtestsframework    文件:CustomEventFiringWebDriver.java   
public FileDetector getFileDetector() {
    return fileDetector;
}