Tapster will tap at coordinates

This commit is contained in:
Dan Cuellar
2015-05-03 10:35:00 +01:00
parent b08b2523aa
commit 6796d89ea2
+10 -5
View File
@@ -862,13 +862,18 @@ iOSController.complexTap = function (tapCount, touchCount, duration, x, y, eleme
, x: x
, y: y
};
var JSONOpts = JSON.stringify(options);
if (elementId !== null) {
command = ["au.getElement('", elementId, "').complexTap(", JSONOpts, ')'].join('');
if (this.useRobot) {
var tapUrl = this.args.robotUrl + "/tap";
request.post({url:tapUrl, form: options}, cb);
} else {
command = ["au.complexTap(", JSONOpts, ")"].join('');
var JSONOpts = JSON.stringify(options);
if (elementId !== null) {
command = ["au.getElement('", elementId, "').complexTap(", JSONOpts, ')'].join('');
} else {
command = ["au.complexTap(", JSONOpts, ")"].join('');
}
this.proxy(command, cb);
}
this.proxy(command, cb);
};
iOSController.clear = function (elementId, cb) {