Hi,
Though the code seems naive it doesn’t work for me.
This is the function I am using however, it fails (see below log).
What am I missing?
public void swipeUpIpone6Action(IOSDriver driver){
int StartX=200;
int StartY = 150;
int EndX=200;
int EndY = 500;
TouchAction a1 = new TouchAction (driver);
a1.tap(StartX, StartY).moveTo(EndX, EndY).waitAction(2000).release().perform();
============================================
[debug] [MJSONWP] Responding to client with driver.postAcceptAlert() result: {}
[HTTP] <-- POST /wd/hub/session/84880183-270e-4b3a-b95c-f7c1e616ef91/accept_alert 200 4526 ms - 74
[debug] [XCUITest] Connection to WDA timed out
[debug] [iProxy] recv failed: Operation not permitted
[HTTP] --> POST /wd/hub/session/84880183-270e-4b3a-b95c-f7c1e616ef91/touch/perform {“actions”:[{“action”:“tap”,“options”:{“x”:200,“y”:150}},{“action”:“moveTo”,“options”:{“x”:200,“y”:500}},{“action”:“wait”,“options”:{“ms”:2000}},{“action”:“release”,“options”:{}}]}
[debug] [MJSONWP] Calling AppiumDriver.performTouch() with args: [[{“action”:“tap”,“options”:{“x”:200,“y”:150}},{“action”:“moveTo”,“options”:{“x”:200,“y”:500}},{“action”:“wait”,“options”:{“ms”:2000}},{“action”:“release”,“options”:{}}],“84880183-270e-4b3a-b95c-f7c1e616ef91”]
[debug] [XCUITest] Executing command ‘performTouch’
[debug] [XCUITest] Received the following touch action: tap(options={“x”:200,“y”:150})-moveTo(options={“x”:200,“y”:500})-wait(options={“ms”:2000})-release(options={})
[HTTP] <-- POST /wd/hub/session/84880183-270e-4b3a-b95c-f7c1e616ef91/touch/perform 501 6 ms - 636