use of org.openqa.selenium.remote.DesiredCapabilities in project ddd-cqrs-sample by BottegaIT.
the class BrowserAgentDriverProvider method createChromeDriver.
@Override
protected ChromeDriver createChromeDriver() {
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
String chromeBinary = System.getProperty("chrome.binary");
if (StringUtils.isNotBlank(chromeBinary)) {
capabilities.setCapability("chrome.binary", chromeBinary);
}
return new ChromeDriver(capabilities);
}
use of org.openqa.selenium.remote.DesiredCapabilities in project ddd-cqrs-sample by BottegaIT.
the class BrowserAgentDriverProvider method createInternetExplorerDriver.
@Override
protected InternetExplorerDriver createInternetExplorerDriver() {
DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();
capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
return new InternetExplorerDriver(capabilities);
}
use of org.openqa.selenium.remote.DesiredCapabilities in project wechat by dllwh.
the class SeleniumHandler method getIEDriver.
/**
* @方法描述: 获取IE驱动
* @return
*/
private WebDriver getIEDriver() {
String path = genPath + props.getProperty("ieDriver");
System.getProperties().setProperty("webdriver.ie.driver", path);
DesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer();
ieCapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
InternetExplorerDriver driver = new InternetExplorerDriver(ieCapabilities);
return driver;
}
use of org.openqa.selenium.remote.DesiredCapabilities in project muikku by otavanopisto.
the class AbstractUITest method createPhantomJsDriver.
protected WebDriver createPhantomJsDriver() {
DesiredCapabilities desiredCapabilities = DesiredCapabilities.phantomjs();
desiredCapabilities.setCapability(PhantomJSDriverService.PHANTOMJS_EXECUTABLE_PATH_PROPERTY, ".phantomjs/bin/phantomjs");
desiredCapabilities.setCapability(PhantomJSDriverService.PHANTOMJS_PAGE_CUSTOMHEADERS_PREFIX + "Accept-Language", "fi_FI");
desiredCapabilities.setCapability(PhantomJSDriverService.PHANTOMJS_CLI_ARGS, new String[] { "--ignore-ssl-errors=true", "--webdriver-loglevel=NONE", "--load-images=false" });
PhantomJSDriver driver = new PhantomJSDriver(desiredCapabilities);
driver.manage().window().setSize(new Dimension(1280, 1024));
return driver;
}
use of org.openqa.selenium.remote.DesiredCapabilities in project selenium-tests by Wikia.
the class AndroidBrowser method setOptions.
@Override
public void setOptions() {
DesiredCapabilities destCaps = new DesiredCapabilities();
destCaps.setCapability("deviceName", Configuration.getDeviceName());
URL url = null;
try {
url = new URL("http://" + Configuration.getAppiumIp() + "/wd/hub");
} catch (MalformedURLException e) {
Log.log("getAndroindInstance", e, false);
}
mobileDriver = new AndroidDriver(url, destCaps);
}
Aggregations