forked from public/cordova-plugin-camera
CB-10639 Appium tests: Added some timeouts,
Taking a screenshot on failure, Retry taking a picture up to 3 times, Try to restart the Appium session if it's lost
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*jslint node: true, plusplus: true */
|
||||
/* jshint node: true */
|
||||
'use strict';
|
||||
|
||||
var wd = global.WD || require('wd');
|
||||
@@ -24,11 +24,10 @@ module.exports.getDriver = function (platform, callback) {
|
||||
}
|
||||
driver = wd.promiseChainRemote(serverConfig);
|
||||
module.exports.configureLogging(driver);
|
||||
driver.init(driverConfig).setImplicitWaitTimeout(10000)
|
||||
|
||||
return driver.init(driverConfig).setImplicitWaitTimeout(10000)
|
||||
.sleep(20000) // wait for the app to load
|
||||
.then(callback);
|
||||
|
||||
return driver;
|
||||
};
|
||||
|
||||
module.exports.getWD = function () {
|
||||
|
||||
Reference in New Issue
Block a user