cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alsoro...@apache.org
Subject cordova-paramedic git commit: Permission buster now handles Android 7.0 alerts
Date Thu, 13 Apr 2017 06:56:43 GMT
Repository: cordova-paramedic
Updated Branches:
  refs/heads/master 697cc5bb3 -> cdb6a23c6


Permission buster now handles Android 7.0 alerts


Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/cdb6a23c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/cdb6a23c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/cdb6a23c

Branch: refs/heads/master
Commit: cdb6a23c6b3239e838ca2a5fdfd0669476c222f7
Parents: 697cc5b
Author: Alexander Sorokin <alexander.sorokin@akvelon.com>
Authored: Thu Apr 13 09:56:27 2017 +0300
Committer: Alexander Sorokin <alexander.sorokin@akvelon.com>
Committed: Thu Apr 13 09:56:27 2017 +0300

----------------------------------------------------------------------
 lib/appium/helpers/wdHelper.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/cdb6a23c/lib/appium/helpers/wdHelper.js
----------------------------------------------------------------------
diff --git a/lib/appium/helpers/wdHelper.js b/lib/appium/helpers/wdHelper.js
index eafe1ab..f7da6ad 100644
--- a/lib/appium/helpers/wdHelper.js
+++ b/lib/appium/helpers/wdHelper.js
@@ -246,10 +246,9 @@ module.exports.bustAlert = function (driver, platform) {
 
         // Android
         return driver
-            .elementByXPath('//android.widget.Button[@text="Allow"]')
+            .elementByXPath('//android.widget.Button[translate(@text, "alow", "ALOW")="ALLOW"]')
             .click()
             .fail(function noAlert() { });
-        
     })
     .then(function () {
         if (previousContext) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message