From cd6f1b2a2ef808762ddaa8edce641d0a285990bf Mon Sep 17 00:00:00 2001 From: Jonathan Lipps Date: Thu, 19 Dec 2013 11:19:34 -0800 Subject: [PATCH] wait a bit after a non-synthetic click since it takes longer than javascript --- lib/devices/ios/ios-controller.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/devices/ios/ios-controller.js b/lib/devices/ios/ios-controller.js index ae75bfbe3..3fca53a15 100644 --- a/lib/devices/ios/ios-controller.js +++ b/lib/devices/ios/ios-controller.js @@ -250,7 +250,12 @@ iOSController.nonSyntheticWebClick = function(elementId, cb) { var clickX = x + (w / 2); var clickY = y + (h / 2); this.curWebCoords = {x: clickX, y: clickY}; - this.clickWebCoords(cb); + this.clickWebCoords(function(err, res) { + // make sure real tap actually has time to register + setTimeout(function() { + cb(err, res); + }, 500); + }); }.bind(this)); }.bind(this)); }.bind(this));