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 2016/05/18 09:03:18 UTC

cordova-plugin-camera git commit: CB-11232 Appium tests: fixed element tapping on iOS 9

Repository: cordova-plugin-camera
Updated Branches:
  refs/heads/master 278b52770 -> dcc81bfbe


CB-11232 Appium tests: fixed element tapping on iOS 9


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

Branch: refs/heads/master
Commit: dcc81bfbe16244cb460d3c5da79fe6ec22795ce7
Parents: 278b527
Author: Alexander Sorokin <al...@akvelon.com>
Authored: Wed May 11 17:51:43 2016 +0300
Committer: Alexander Sorokin <al...@akvelon.com>
Committed: Wed May 18 12:02:44 2016 +0300

----------------------------------------------------------------------
 appium-tests/ios/ios.spec.js | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/dcc81bfb/appium-tests/ios/ios.spec.js
----------------------------------------------------------------------
diff --git a/appium-tests/ios/ios.spec.js b/appium-tests/ios/ios.spec.js
index ec257b1..3f5a68c 100644
--- a/appium-tests/ios/ios.spec.js
+++ b/appium-tests/ios/ios.spec.js
@@ -81,17 +81,8 @@ describe('Camera tests iOS.', function () {
             .elementByXPath('//*[@label="Use"]')
             .click()
             .fail(function () {
-                return driver
-                    // For some reason "Choose" element is not clickable by standard Appium methods
-                    // So getting its position and tapping there using TouchAction
-                    .elementByXPath('//UIAButton[@label="Choose"]')
-                    .getLocation()
-                    .then(function (loc) {
-                        var tapChoose = new wd.TouchAction();
-                        tapChoose.tap(loc);
-                        return driver
-                            .performTouchAction(tapChoose);
-                    });
+                // For some reason "Choose" element is not clickable by standard Appium methods
+                return wdHelper.tapElementByXPath('//UIAButton[@label="Choose"]', driver);
             });
     }
 


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