-
-
Notifications
You must be signed in to change notification settings - Fork 768
Closed
Labels
Description
Description
- For android user performs swipe with below method
TouchAction().press(115, 650).moveTo(115, 350).release().perform();
2.1 Expected Result is
- moveTo(endx, endy)
2.2 Actual Result is
- moveTo(startx - valueX, starty - valueY)
- endx = startx - valueX
- endy = starty - valueY
2.3 Appium log
//FAILS
TouchAction().press(115, 650).moveTo(115, 350).release().perform();
[debug] [MJSONWP] Calling AppiumDriver.performTouch() with args: [[{"action":"press","options":{"x":115,"y":650}},{"action":"moveTo","options":{"x":115,"y":350}},{"action":"release","options":{}}],"4db868fa-ecc4-4556-afb0-ee8dc85aba17"]
[debug] [JSONWP Proxy] Proxying [POST /touch/down] to [POST http://localhost:8200/wd/hub/session/d170c3fa-95b7-44d9-b135-1680dbc57d47/touch/down] with body: {"params":{"x":115,"y":650}}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"d170c3fa-95b7-44d9-b135-1680dbc57d47","status":0,"value":true}
[debug] [JSONWP Proxy] Proxying [POST /touch/move] to [POST http://localhost:8200/wd/hub/session/d170c3fa-95b7-44d9-b135-1680dbc57d47/touch/move] with body: {"params":{"x":230,"y":1000}}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"d170c3fa-95b7-44d9-b135-1680dbc57d47","status":0,"value":true}
[debug] [JSONWP Proxy] Proxying [POST /touch/up] to [POST http://localhost:8200/wd/hub/session/d170c3fa-95b7-44d9-b135-1680dbc57d47/touch/up] with body: {"params":{"x":230,"y":1000}}
//WORKS
TouchAction().press(115, 650).moveTo(0, -300).release().perform();
[debug] [JSONWP Proxy] Proxying [POST /touch/down] to [POST http://localhost:8200/wd/hub/session/45123bd3-75e9-4318-b537-cccb6582cdf5/touch/down] with body: {"params":{"x":115,"y":650}}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"45123bd3-75e9-4318-b537-cccb6582cdf5","status":0,"value":true}
[debug] [JSONWP Proxy] Proxying [POST /touch/move] to [POST http://localhost:8200/wd/hub/session/45123bd3-75e9-4318-b537-cccb6582cdf5/touch/move] with body: {"params":{"x":115,"y":350}}
[debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"45123bd3-75e9-4318-b537-cccb6582cdf5","status":0,"value":true}
[debug] [JSONWP Proxy] Proxying [POST /touch/up] to [POST http://localhost:8200/wd/hub/session/45123bd3-75e9-4318-b537-cccb6582cdf5/touch/up] with body: {"params":{"x":115,"y":350}}
Environment
- java client build version or git revision if you use some shapshot: 5.0.4
- Appium server version or git revision if you use some shapshot: v1.7.2-beta2
- Desktop OS/version used to run Appium if necessary: Mac
- Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe: CLI
- Mobile platform/version under test: 6.0
- Real device or emulator/simulator: Real device
Details
Please provide more details, if necessary.
Code To Reproduce Issue [ Good To Have ]
NA
Ecxeption stacktraces
NA
Link to Appium logs
NA