question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Swipe always change to long press

See original GitHub issue

Description

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:closed
  • Created 7 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
SrinivasanTargetcommented, Jul 31, 2016

@18516329677 This has been fixed in server.If your running from appium source please take a pull and try.It should be working now.

0reactions
SrinivasanTargetcommented, Aug 26, 2016

@18516329677 I’m closing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Touch & hold delay - Android Accessibility Help
Open your device's Settings app . Tap Accessibility and then Touch & hold delay. Select Short, Medium, or Long. More about the "touch...
Read more >
Use Touch Accommodations with your iPhone, iPad, iPod ...
Touch Accommodations changes how the screen on your device responds to taps, swipes, and other gestures.
Read more >
How to use Swipe gesture recognizer for a long press up?
I'm using a swipe gesture recognizer to increase and decrease my counter with a swipe up and a swipe down. I'm also offsetting...
Read more >
7 ways to fix the QuickPath or swipe keyboard on iPhone and ...
How to switch to different keyboards on an iPhone or iPad: Tap in a text field to raise the on-screen keyboard. Touch and...
Read more >
Got Gboard? 12 hidden shortcuts for faster Android typing
And sure enough, Gboard has a hidden shortcut that makes that easy to do: Touch your finger to the Shift key (the up-facing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found