Search in sources :

Example 1 with EdgeDriverService

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);
}
Also used : EdgeOptions(org.openqa.selenium.edge.EdgeOptions) EdgeDriver(org.openqa.selenium.edge.EdgeDriver) EdgeDriverService(org.openqa.selenium.edge.EdgeDriverService) CheckReturnValue(javax.annotation.CheckReturnValue) Nonnull(javax.annotation.Nonnull)

Example 2 with EdgeDriverService

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;
}
Also used : EdgeOptions(org.openqa.selenium.edge.EdgeOptions) EdgeDriver(org.openqa.selenium.edge.EdgeDriver) EdgeDriverService(org.openqa.selenium.edge.EdgeDriverService)

Example 3 with EdgeDriverService

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;
}
Also used : EdgeOptions(org.openqa.selenium.edge.EdgeOptions) EdgeDriver(org.openqa.selenium.edge.EdgeDriver) EdgeDriverService(org.openqa.selenium.edge.EdgeDriverService)

Aggregations

EdgeDriver (org.openqa.selenium.edge.EdgeDriver)3 EdgeDriverService (org.openqa.selenium.edge.EdgeDriverService)3 EdgeOptions (org.openqa.selenium.edge.EdgeOptions)3 CheckReturnValue (javax.annotation.CheckReturnValue)1 Nonnull (javax.annotation.Nonnull)1