From 688f0c0d776cb0e0bd6367606a032dea1bfec0f5 Mon Sep 17 00:00:00 2001 From: hannes Date: Wed, 4 Sep 2013 15:46:32 +0100 Subject: [PATCH] enable apppium to tapping on UITableViewCell tapping UITableViewCell using UI Automation does not work and it is a known bug with apple, work around for tapping on UITableViewCell is using the element coordinates and added that to appium --- app/uiauto/appium/app.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/uiauto/appium/app.js b/app/uiauto/appium/app.js index decec76af..8bd3b4ba8 100644 --- a/app/uiauto/appium/app.js +++ b/app/uiauto/appium/app.js @@ -193,10 +193,14 @@ $.extend(au, { // element may still be null. element.tap(); } catch(e) { - return { - status: codes.UnknownError.code, - value: 'elementId ' + elementId + ' is null and can\'t be tapped.' - }; + try { + target.tap(element.rect()); + } catch(e2) { + return { + status: codes.UnknownError.code, + value: 'elementId ' + elementId + ' is null and can\'t be tapped. ' + e + ', ' + e2 + }; + } } return { status: codes.Success.code,