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 not act as expected

See original GitHub issue

Description

trying to use element.swipe(UP, duration);, but the undergoing swipe(int startx, int starty, int endx, int endy, int duration) does not work as expected

Environment

  • java client build version or git revision if you use some shapshot: 3.4.0
  • Appium server version or git revision if you use some shapshot: 1.5.0
  • Desktop OS/version used to run Appium if necessary: Mac OSX 10.11
  • Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe: 5.6.0
  • Mobile platform/version under test: iPhone 9.2.1
  • Real device or emulator/simulator: 6s plus

Details

I was trying to do element.swipe(UP, duration). According to the debug level logs, after some getLocation and getSize requests , appium called swipe(int, int,int,int,int) as below:

[MJSONWP] Calling AppiumDriver.performTouch() with args: [[{“action”:“press”,“options”:{“x”:207,“y”:439}},{“action”:“wait”,“options”:{“ms”:1000}},{“action”:“moveTo”,“options”:{“x”:207,“y”:298}},{“action”:…

it was a correct swipe up action. but following logs showed that it interpreted the actions wrong to following commands:

[debug] [iOS] Executing iOS command ‘performTouch’ [debug] [UIAuto] Sending command to instruments: target.touch([{“touch”:[{“x”:207,“y”:439}],“time”:0.2},{“touch”:[{“x”:207,“y”:439}],“time”:1.2},{“touch”:[{“x”:414,“y”:737}],“time”:1.4}]) [debug] [Instruments] [INST] 2016-03-29 08:44:34 +0000 Debug: Got new command 18 from instruments: target.touch([{“touch”:[{“x”:207,“y”:439}],“time”:0.2},{“touch”:[{“x”:207,“y”:439}],“time”:1.2},{“touch”:[{“x”:414,“y”:737}],“time”:1.4}]) [debug] [Instruments] [INST] 2016-03-29 08:44:34 +0000 Debug: evaluating target.touch([{“touch”:[{“x”:207,“y”:439}],“time”:0.2},{“touch”:[{“x”:207,“y”:439}],“time”:1.2},{“touch”:[{“x”:414,“y”:737}],“time”:1.4}]) [debug] [Instruments] [INST] 2016-03-29 08:44:34 +0000 Debug: target.touch(__NSCFArray) [debug] [Instruments] [INST] 2016-03-29 08:44:35 +0000 Debug: point is not within the bounds of the screen [debug] [UIAuto] Socket data received (70 bytes) [debug] [UIAuto] Got result from instruments: {“status”:17,“value”:“point is not within the bounds of the screen”} [HTTP] <-- POST /wd/hub/session/47695b97-9182-4258-a23b-a0f478210510/touch/perform 500 1763 ms - 131 [debug] [Instruments] [INST] 2016-03-29 08:44:35 +0000 Error: VerboseError: point is not within the bounds of the screen

please notice these commands were not swipe UP, but DOWN. and for the y:737 part, the screen size was only (414,736)

Code To Reproduce Issue [ Good To Have ]

no need

Ecxeption stacktraces

Please create a gist with pasted stacktrace of exception thrown by java.

Link to Appium logs

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:20 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
TikhomirovSergeycommented, Apr 19, 2016

@BrantK @truebit @nuggit32 Here is the snapshot. Just unzip it and put it to your maven repository And don’t forget change the version at your pom’s to 4.0.0-SNAPSHOT. 4.0.0-SNAPSHOT.zip

0reactions
SrinivasanTargetcommented, Oct 13, 2016

@dinkar19121991 Log a new issue with all logs needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

windows 10 right hand swipe not functioning prperly
While using my surface pro 3 with Windows 10 the right hand swipe as well as the bottom taskbar are working sporadically.
Read more >
Workaround for swipe containers not swiping if dragged on a ...
I used your 'SwipeContainerButton' function and the effect is as expected except for one small detail: Drag by holding down the button it...
Read more >
Is Congress Going to Kill Credit Card Rewards? - NerdWallet
More than a decade ago, Durbin sponsored similar legislation that reduced swipe fees on debit card purchases. Known as the Durbin amendment to ......
Read more >
Touchscreen gestures - Inputs - Human Interface Guidelines
Touchscreen devices all use basic gestures like tap, swipe, and drag. ... Easy to discover and perform; Not too similar to gestures people...
Read more >
How to add custom swipe actions to a UICollectionViewListCell?
This swipe actions provider is expected to return an instance of UISwipeActionsConfiguration . A UISwipeActionsConfiguration is created ...
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