mirror of
https://github.com/appium/appium.git
synced 2026-01-23 19:00:31 -06:00
Updating tapster robot URLs
This commit is contained in:
@@ -388,8 +388,8 @@ iOSController.click = function (elementId, cb) {
|
||||
var pos = {x: rect.origin.x, y: rect.origin.y};
|
||||
var size = {w: rect.size.width, h: rect.size.height};
|
||||
var tapPoint = { x: pos.x + (size.w / 2), y: pos.y + (size.h / 2) };
|
||||
var tapUrl = this.args.robotUrl + "/tap/x/" + tapPoint.x + "/y/" + tapPoint.y;
|
||||
request.get(tapUrl, {}, cb);
|
||||
var tapUrl = this.args.robotUrl + "/tap";
|
||||
request.post({url:tapUrl, form: {x:tapPoint.x, y:tapPoint.y}}, cb);
|
||||
}.bind(this));
|
||||
} else {
|
||||
this.nativeTap(elementId, cb);
|
||||
@@ -743,8 +743,8 @@ iOSController.clickCurrent = function (button, cb) {
|
||||
|
||||
iOSController.clickCoords = function (coords, cb) {
|
||||
if (this.useRobot) {
|
||||
var tapUrl = this.args.robotUrl + "/tap/x/" + coords.x + "/y/" + coords.y;
|
||||
request.get(tapUrl, {}, cb);
|
||||
var tapUrl = this.args.robotUrl + "/tap";
|
||||
request.post({url:tapUrl, form: {x:coords.x, y:coords.y}}, cb);
|
||||
} else {
|
||||
var opts = coords;
|
||||
opts.tapCount = 1;
|
||||
|
||||
Reference in New Issue
Block a user