use of org.openqa.selenium.edge.EdgeDriverService in project selenide by selenide.
the class EdgeDriverFactory method create.
@Override
@CheckReturnValue
@Nonnull
public WebDriver create(Config config, Browser browser, @Nullable Proxy proxy, @Nullable File browserDownloadsFolder) {
EdgeOptions options = createCapabilities(config, browser, proxy, browserDownloadsFolder);
EdgeDriverService driverService = createDriverService(config);
return new EdgeDriver(driverService, options);
}
use of org.openqa.selenium.edge.EdgeDriverService in project selenese-runner-java by vmi.
the class EdgeDriverFactory method newInstance.
@Override
public WebDriver newInstance(DriverOptions driverOptions) {
if (!OS.isFamilyWindows())
throw new UnsupportedOperationException("Unsupported platform: " + Platform.getCurrent());
EdgeDriverService service = setupBuilder(new EdgeDriverService.Builder(), driverOptions, EDGEDRIVER).build();
EdgeOptions options = newEdgeOptions(driverOptions);
options.merge(driverOptions.getCapabilities());
EdgeDriver driver = new EdgeDriver(service, options);
setInitialWindowSize(driver, driverOptions);
return driver;
}
use of org.openqa.selenium.edge.EdgeDriverService in project selenium_java by sergueik.
the class EdgeDriverFactory method newInstance.
@Override
public WebDriver newInstance(DriverOptions driverOptions) {
if (!OS.isFamilyWindows())
throw new UnsupportedOperationException("Unsupported platform: " + Platform.getCurrent());
EdgeDriverService service = setupBuilder(new EdgeDriverService.Builder(), driverOptions, EDGEDRIVER).build();
EdgeOptions options = newEdgeOptions(driverOptions);
options.merge(driverOptions.getCapabilities());
EdgeDriver driver = new EdgeDriver(service, options);
setInitialWindowSize(driver, driverOptions);
return driver;
}
Aggregations