Example usage for org.openqa.selenium.ie InternetExplorerOptions setCapability

List of usage examples for org.openqa.selenium.ie InternetExplorerOptions setCapability

Introduction

In this page you can find the example usage for org.openqa.selenium.ie InternetExplorerOptions setCapability.

Prototype

@Override
    public void setCapability(String key, Object value) 

Source Link

Usage

From source file:com.epam.jdi.uitests.web.selenium.driver.SeleniumDriverFactory.java

License:Open Source License

private InternetExplorerOptions defaultIEOptions() {
    InternetExplorerOptions cap = new InternetExplorerOptions();
    cap.setCapability(INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
    cap.setCapability("ignoreZoomSetting", true);
    //cap.setCapability("requireWindowFocus", true);
    cap.setCapability(PAGE_LOAD_STRATEGY, pageLoadStrategy);
    return cap;//from w  w w .  j a  va 2  s .c  o  m
}

From source file:org.testeditor.fixture.web.WebDriverFixture.java

License:Open Source License

private void populateIeOptions(List<BrowserSetting> options, InternetExplorerOptions ieOptions) {
    StringBuffer buffer = new StringBuffer();
    if (options != null) {
        options.forEach((option) -> {
            buffer.append(" key:" + option.getKey() + " value:" + (String) option.getValue() + " ");
            ieOptions.setCapability(option.getKey(), option.getValue());
        });// w ww  .j a  v  a 2  s  .  c o  m
    }
    logger.trace("All Internet Explorer options: {}", buffer.toString());
}