From dcc81bfbe16244cb460d3c5da79fe6ec22795ce7 Mon Sep 17 00:00:00 2001 From: Alexander Sorokin Date: Wed, 11 May 2016 17:51:43 +0300 Subject: [PATCH] CB-11232 Appium tests: fixed element tapping on iOS 9 --- appium-tests/ios/ios.spec.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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); }); }