List of usage examples for org.openqa.selenium.ie InternetExplorerOptions setCapability
@Override public void setCapability(String key, Object value)
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()); }