lower timeout for iOS8

This commit is contained in:
sebv
2015-01-28 17:04:11 +08:00
parent 85b3f1fc12
commit cd034196b5
+2 -1
View File
@@ -1552,7 +1552,8 @@ IOS.prototype.getLatestWebviewContextForTitle = function (titleRegex, cb) {
};
IOS.prototype.navToInitialWebview = function (cb) {
var timeout = this.args.udid ? 6000 : 0;
var timeout = 0;
if (this.args.udid) timeout = parseInt(this.iOSSDKVersion, 10) >= 8 ? 4000 : 6000;
if (timeout > 0) logger.debug('Waiting for ' + timeout + ' ms before navigating to view.');
setTimeout(function () {
if (parseInt(this.iOSSDKVersion, 10) >= 7 && !this.args.udid && this.capabilities.safari) {