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,