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

Zoom implementation uses absolute coordinates, while appium server is expecting relative coordinates #152

Closed
jbaeten opened this issue Jun 9, 2016 · 0 comments

Comments

@jbaeten
Copy link

jbaeten commented Jun 9, 2016

Description

The zoom method uses absolute coordinates instead of relative coordinates. This causes unexpected results when using Zoom(IWEbElement) and Zoom(int,int).

The Appium logs below show the problem in case of using Zoom(200,200).

Environment

  • Appium WebDriver 1.5.1.1
  • Appium server 1.5.2
  • Node.js version 4.4.4
  • Mobile platform/version under test: Android
  • Real device or emulator/simulator: Real device

Link to Appium logs

[HTTP] --> POST /wd/hub/session/6e5b7e48-534d-4f77-a590-8c6fe59fc816/touch/multi/perform {"actions":[[{"action":"press","options":{"x":200,"y":200}},{"action":"moveTo","options":{"x":200,"y":100}},{"action":"release"}],[{"action":"press","options":{"x":200,"y":200}},{"action":"moveTo","options":{"x":200,"y":300}},{"action":"release"}]]}
[MJSONWP] Calling AppiumDriver.performMultiAction() with args: [[[{"action":"press","options":{"x":200,"y":200}},{"action":"moveTo","options":{"x":200,"y":100}},{"action":"release"}],[{"action":"press","options...
[debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"performMultiPointerGesture","params":{"actions":[[{"action":"press","time":0.005,"touch":{"x":200,"y":200}},{"action":"moveTo","time":0.01,"touch":{"x":400,"y":300}}],[{"action":"press","time":0.005,"touch":{"x":200,"y":200}},{"action":"moveTo","time":0.01,"touch":{"x":400,"y":500}}]]}}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"performMultiPointerGesture","params":{"actions":[[{"action":"press","time":0.005,"touch":{"x":200,"y":200}},{"action":"moveTo","time":0.01,"touch":{"x":400,"y":300}}],[{"action":"press","time":0.005,"touch":{"x":200,"y":200}},{"action":"moveTo","time":0.01,"touch":{"x":400,"y":500}}]]}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants