Swipe always change to long press
See original GitHub issueDescription
After i upgrade appium to 1.5.3 and use java client 4.0 , swipe does not work for IOS in my project. i want to use swipe to refresh order list in my app , but it always perform long press action , then the app will change to multiple select page , swipe can not be finished. From the appium log i can see that when call swipe method , the start point will be pressed for 0.2s by default.
Environment
java client 4.0 appium: 1.5.3 node version:v6.2.0 test machine:iPhone 5 test platform: IOS 9.2.1
Details
Please provide more details, if necessary.
Code To Reproduce Issue [ Good To Have ]
int width = driver.manage().window().getSize().width;
int height = driver.manage().window().getSize().height;
driver.swipe(width / 2, height * 2 / 5, width / 2, height * 4 / 5, 500);
Ecxeption stacktraces
Link to Appium logs
[HTTP] --> POST /wd/hub/session/869464ed-57f7-47b2-bcc8-93d528bbd7ea/touch/perform {“actions”:[{“action”:“press”,“options”:{“x”:160,“y”:227}},{“action”:“wait”,“options”:{“ms”:500}},{“action”:“moveTo”,“options”:{“x”:0,“y”:227}},{“action”:“release”,“options”:{}}]} [MJSONWP] Calling AppiumDriver.performTouch() with args: [[{“action”:“press”,“option… [debug] [iOS] Executing iOS command ‘performTouch’ [debug] [UIAuto] Sending command to instruments: target.touch([{“touch”:[{“x”:160,“y”:227}],“time”:0.2},{“touch”:[{“x”:160,“y”:227}],“time”:0.7},{“touch”:[{“x”:160,“y”:454}],“time”:0.8999999999999999}]) [debug] [Instruments] [INST] 2016-07-11 07:15:33 +0000 Debug: Got new command 11 from instruments: target.touch([{“touch”:[{“x”:160,“y”:227}],“time”:0.2},{“touch”:[{“x”:160,“y”:227}],“time”:0.7},{“touch”:[{“x”:160,“y”:454}],“time”:0.8999999999999999}]) [debug] [Instruments] [INST] 2016-07-11 07:15:33 +0000 Debug: evaluating target.touch([{“touch”:[{“x”:160,“y”:227}],“time”:0.2},{“touch”:[{“x”:160,“y”:227}],“time”:0.7},{“touch”:[{“x”:160,“y”:454}],“time”:0.8999999999999999}]) [debug] [Instruments] [INST] 2016-07-11 07:15:33 +0000 Debug: target.touch(__NSCFArray) [debug] [Instruments] [INST] 2016-07-11 07:15:34 +0000 Debug: evaluation finished [debug] [Instruments] [INST] 2016-07-11 07:15:34 +0000 Debug: responding with: [debug] [Instruments] [INST] 2016-07-11 07:15:34 +0000 Debug: Running system command #12: /Applications/Appium.app/Contents/Resources/node/bin/node /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-ios-driver/node_modules/appium-uiauto/build/lib/bin/command-proxy-client.js /var/folders/p9/9bdgbcp94dz0h2mhwl9z3s7r0000gn/T/instruments_sock 2,{“status”:0,“v… [debug] [UIAuto] Socket data received (25 bytes) [debug] [UIAuto] Got result from instruments: {“status”:0,“value”:””} [MJSONWP] Responding to client with driver.performTouch() result: null [HTTP] <-- POST /wd/hub/session/869464ed-57f7-47b2-bcc8-93d528bbd7ea/touch/perform 200 1912 ms - 76 INFO main - Swipe down INFO main -
Issue Analytics
- State:
- Created 7 years ago
- Comments:19 (10 by maintainers)
Top GitHub Comments
@18516329677 This has been fixed in server.If your running from
appium
source please take a pull and try.It should be working now.@18516329677 I’m closing this.