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