Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TouchAction.moveTo() assumes relative coordinates on iOS and absolute coordinates on Android #5847

Closed
rshanley opened this issue Nov 18, 2015 · 6 comments

Comments

@rshanley
Copy link

Using Appium Java Client 3.2.0

TouchAction.moveTo(int x, int y) assumes absolute coordinates on Android.

On iOS however it assumes relative coordinates.

This breaks the platform independence.

We recreated this with the following Java test:

new TouchAction(driver).longPress(start.getX(), start.getY()).moveTo(end.getX(), end.getY()).release().perform()

@triager triager added the Needs Triage bugs which are not yet confirmed label Nov 18, 2015
@scottdixon-zz
Copy link

@rshanley - please try Appium 1.5 npm install -g appium

Let me know if the issue persists.

@rshanley-micro-focus
Copy link

@scottdixon this issue still persists. we have been using a workaround.

@denniskpw
Copy link

Can confirm this is reproducible with the python client on Appium 1.5.3.

@dpgraham
Copy link
Contributor

Closing. If this problem still occurs on Appium 1.6.x please post the error logs and I'll re-open it.

@imurchie imurchie removed the Needs Triage bugs which are not yet confirmed label Jul 13, 2017
@pabitra-itobuz
Copy link

At the time of giving "(new TouchAction(driver)).tap(341, 44).perform();" this below mention error is showing.
The method tap(TapOptions) in the type TouchAction is not applicable for the arguments (int, int)
If I want to use coordinates then how can I use?
Appium version:- 1.10.1
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
Selenium:- 3.141.59
Platform:- iOS

@lock
Copy link

lock bot commented Feb 18, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants