You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by al...@apache.org on 2017/04/10 14:49:58 UTC
cordova-paramedic git commit: Don't poll for windowHandles on iOS
Repository: cordova-paramedic
Updated Branches:
refs/heads/master 5f71c7545 -> 4ea0b1010
Don't poll for windowHandles on iOS
Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/4ea0b101
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/4ea0b101
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/4ea0b101
Branch: refs/heads/master
Commit: 4ea0b1010af06e3c7dcd8ebda50c78b9d1560fb0
Parents: 5f71c75
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Mon Apr 10 17:49:41 2017 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Mon Apr 10 17:49:41 2017 +0300
----------------------------------------------------------------------
lib/appium/helpers/wdHelper.js | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/4ea0b101/lib/appium/helpers/wdHelper.js
----------------------------------------------------------------------
diff --git a/lib/appium/helpers/wdHelper.js b/lib/appium/helpers/wdHelper.js
index bc27acd..eafe1ab 100644
--- a/lib/appium/helpers/wdHelper.js
+++ b/lib/appium/helpers/wdHelper.js
@@ -180,6 +180,7 @@ module.exports.tapElementByXPath = function (xpath, driver) {
module.exports.pollForEvents = function (driver, platform, windowOffset) {
var isAndroid = platform === 'android';
+ var isIOS = platform === 'ios';
if (!windowOffset) {
windowOffset = 0;
}
@@ -188,6 +189,9 @@ module.exports.pollForEvents = function (driver, platform, windowOffset) {
.sleep(0)
.bustAlert(platform)
.then(function() {
+ if (isIOS) {
+ return driver;
+ }
// for some reason inappbrowser tests tend to leave an active window on android
// so for the polling to work correctly we need to
// switch back to the window where the cache is located
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org