-
-
Notifications
You must be signed in to change notification settings - Fork 768
Description
Description
Since upgrading Appium from 1.7 to 1.8.1 or 1.9 the touch events does not work anymore on iOS. I have seen numerous people stating newest WDA server pull solved the issue, others stating full reinstall of appium, clearing of Xcode, etc.. I have tried the solutions provided by other users, but simply I can not get the issue resolved.
I have downloaded the newest WDA server version, installed latest appium version (1.9) and If I try to upgrade the java client to 6.1.0 and when done the last I get unhandled endpoint error when obtaining the session...
Nothing at all seems to be working for me. I would appreciate help on resolving this ambiguous issue.
Environment
java client build version: 5.0.4
Appium server version: 1.8.1
Last Appium version that it was working: 1.7.2
OS version: MacOS 10.13.6
Node.js version: v10.5.0
Mobile platform/version under test: iOS 11.2.1
Real device: iPhone 6
Java version is: 1.8.0_172
Details
TouchAction.perform() is throwing unhandled endpoint since upgrading Appium to 1.8.X.
Code To Reproduce Issue [ Good To Have ]
public static void performTouch(@NotNull DeviceDriver deviceDriver, int x, int y) {
new TouchAction(deviceDriver.getDriver())
.tap(x, y)
.release()
.perform();
}
Ecxeption stacktraces
2018-10-04 12:25:09:653 - [HTTP] --> POST /wd/hub/session/db253fee-c5d0-45b2-9f10-8b1658dfc808/touch/perform
2018-10-04 12:25:09:654 - [HTTP] {"actions":[{"action":"tap","options":{"x":1,"y":1}},{"action":"release","options":{}}]}
2018-10-04 12:25:09:656 - [debug] [W3C] Calling AppiumDriver.performTouch() with args: [[{"action":"tap","options":{"x":1,"y":1}},{"action":"release","options":{}}],"db253fee-c5d0-45b2-9f10-8b1658dfc808"]
2018-10-04 12:25:09:656 - [debug] [XCUITest] Executing command 'performTouch'
2018-10-04 12:25:09:659 - [debug] [XCUITest] Received the following touch action: tap(options={"x":1,"y":1})-release(options={})
2018-10-04 12:25:09:659 - [debug] [JSONWP Proxy] Proxying [POST /wda/touch/perform] to [POST http://127.0.0.1:11600/session/76F406B4-238C-4270-B028-5C7B3BC2AA91/wda/touch/perform] with body: {"actions":[{"action":"tap","options":{"x":1,"y":1}},{"action":"release","options":{}}]}
2018-10-04 12:25:09:676 - [debug] [JSONWP Proxy] Got response with status 200: {"value":"Unhandled endpoint: /session/76F406B4-238C-4270-B028-5C7B3BC2AA91/wda/touch/perform -- http://127.0.0.1:11600/ with parameters {\n wildcards = (\n \"session/76F406B4-238C-4270-B028-5C7B3BC2AA91/wda/touch/perform\"\n );\n}","sessionId":"76F406B4-238C-4270-B028-5C7B3BC2AA91","status":1}
2018-10-04 12:25:09:679 - [MJSONWP] Encountered internal error running command: Error: An error occurred
2018-10-04 12:25:09:680 - [MJSONWP] at JWProxy.command$ (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:176:15)
2018-10-04 12:25:09:680 - [MJSONWP] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
2018-10-04 12:25:09:680 - [MJSONWP] at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
2018-10-04 12:25:09:680 - [MJSONWP] at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
2018-10-04 12:25:09:680 - [MJSONWP] at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
2018-10-04 12:25:09:681 - [HTTP] <-- POST /wd/hub/session/db253fee-c5d0-45b2-9f10-8b1658dfc808/touch/perform 500 27 ms - 188
Link to Appium logs
https://gist.github.com/Hiti3/2e4db4c23f1653ea4973f24d5c3fb2f4