mirror of
https://github.com/appium/appium.git
synced 2026-10-26 02:29:38 +08:00
Tapster will tap at coordinates
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user