wait a bit after a non-synthetic click since it takes longer than javascript

This commit is contained in:
Jonathan Lipps
2013-12-19 11:19:34 -08:00
parent 2622b2589b
commit cd6f1b2a2e
+6 -1
View File
@@ -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));