CB-10619 Appium tests: Properly switch to webview

This commit is contained in:
Alexander Sorokin
2016-02-16 16:28:43 +03:00
parent a060fb36f3
commit 61b77951e1
2 changed files with 85 additions and 20 deletions
+4 -1
View File
@@ -16,9 +16,12 @@ module.exports.getDriver = function (platform, callback) {
platformVersion: global.PLATFORM_VERSION || '',
deviceName: global.DEVICE_NAME || '',
app: global.PACKAGE_PATH,
autoAcceptAlerts: true
autoAcceptAlerts: true,
};
if (process.env.CHROMEDRIVER_EXECUTABLE) {
driverConfig.chromedriverExecutable = process.env.CHROMEDRIVER_EXECUTABLE;
}
driver = wd.promiseChainRemote(serverConfig);
module.exports.configureLogging(driver);
driver.init(driverConfig).setImplicitWaitTimeout(10000)