Search in sources :

Example 1 with WebDriverConfiguration

use of org.jboss.arquillian.drone.webdriver.configuration.WebDriverConfiguration in project keycloak by keycloak.

the class KeycloakWebDriverConfigurator method createConfiguration.

public void createConfiguration(@Observes BeforeDroneInstantiated event, DroneContext droneContext) {
    WebDriverConfiguration webDriverCfg = droneContext.get(event.getDronePoint()).getConfigurationAs(WebDriverConfiguration.class);
    DesiredCapabilities capabilitiesToAdd = new DesiredCapabilities();
    updateCapabilityKeys("htmlUnit", webDriverCfg, capabilitiesToAdd);
    updateCapabilityKeys("appium", webDriverCfg, capabilitiesToAdd);
    configurePhantomJSDriver(webDriverCfg, capabilitiesToAdd);
    acceptAllSSLCerts(webDriverCfg, capabilitiesToAdd);
    BrowserCapabilities browserCap = registryInstance.get().getEntryFor(webDriverCfg.getBrowser());
    webDriverCfg.setBrowserInternal(new KcBrowserCapabilities(capabilitiesToAdd, browserCap));
}
Also used : DesiredCapabilities(org.openqa.selenium.remote.DesiredCapabilities) WebDriverConfiguration(org.jboss.arquillian.drone.webdriver.configuration.WebDriverConfiguration) BrowserCapabilities(org.jboss.arquillian.drone.webdriver.spi.BrowserCapabilities)

Aggregations

WebDriverConfiguration (org.jboss.arquillian.drone.webdriver.configuration.WebDriverConfiguration)1 BrowserCapabilities (org.jboss.arquillian.drone.webdriver.spi.BrowserCapabilities)1 DesiredCapabilities (org.openqa.selenium.remote.DesiredCapabilities)1