mirror of
https://github.com/appium/appium.git
synced 2026-10-26 10:47:45 +08:00
wait a bit after a non-synthetic click since it takes longer than javascript
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user