com.github.metalloid.webdriver.EdgeInstance Maven / Gradle / Ivy
package com.github.metalloid.webdriver;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.edge.EdgeDriver;
import java.util.Optional;
class EdgeInstance extends Instance implements LocalInstance, RemoteInstance {
private WebDriver driver;
private WebDriverOptions webDriverOptions;
@Override
public void setOptions(WebDriverOptions options) {
Optional> optionalOfCustomOptions = this.getCustomOptionClass();
this.webDriverOptions = optionalOfCustomOptions.orElse(options);
}
@Override
public WebDriver getWebDriver() {
return driver;
}
@Override
public BrowserInstance createLocalInstance() {
driver = createLocal(EdgeDriver.class, webDriverOptions);
return this;
}
@Override
public BrowserInstance createRemoteInstance() {
driver = createRemoteInstance(webDriverOptions);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy