https://github.com/appium/ruby_lib_core/blob/master/test/functional/android/webdriver/w3c_actions_test.rb#L22
@driver . action . click ( el ) . perform
Appium (b672a53006 of master. Server apks are working branch )
[HTTP] --> POST /wd/hub/session/3a38fe61-1fd5-4403-827c-ccb1f4123950/actions
[HTTP] {"actions":[{"type":"pointer","id":"mouse","actions":[{"type":"pointerMove","duration":50,"x":0,"y":0,"origin":{"element-6066-11e4-a52e-4f735466cecf":"bd61d4fc-5ce9-441e-a7dc-6c4b0a50a12f"}},{"type":"pointerDown","button":0},{"type":"pointerUp","button":0}],"parameters":{"pointerType":"mouse"}}]}
[debug] [W3C (3a38fe61)] Calling AppiumDriver.performActions() with args: [[{"type":"pointer","id":"mouse","actions":[{"type":"pointerMove","duration":50,"x":0,"y":0,"origin":{"element-6066-11e4-a52e-4f735466cecf":"bd61d4fc-5ce9-441e-a7dc-6c4b0a50a12f"}},{"type":"pointerDown","button":0},{"type":"pointerUp","button":0}],"parameters":{"pointerType":"mouse"}}],"3a38fe61-1fd5-4403-827c-ccb1f4123950"]
[debug] [UiAutomator2] Received the following W3C actions: [
[debug] [UiAutomator2] {
[debug] [UiAutomator2] "type": "pointer",
[debug] [UiAutomator2] "id": "mouse",
[debug] [UiAutomator2] "actions": [
[debug] [UiAutomator2] {
[debug] [UiAutomator2] "type": "pointerMove",
[debug] [UiAutomator2] "duration": 50,
[debug] [UiAutomator2] "x": 0,
[debug] [UiAutomator2] "y": 0,
[debug] [UiAutomator2] "origin": {
[debug] [UiAutomator2] "element-6066-11e4-a52e-4f735466cecf": "bd61d4fc-5ce9-441e-a7dc-6c4b0a50a12f"
[debug] [UiAutomator2] }
[debug] [UiAutomator2] },
[debug] [UiAutomator2] {
[debug] [UiAutomator2] "type": "pointerDown",
[debug] [UiAutomator2] "button": 0
[debug] [UiAutomator2] },
[debug] [UiAutomator2] {
[debug] [UiAutomator2] "type": "pointerUp",
[debug] [UiAutomator2] "button": 0
[debug] [UiAutomator2] }
[debug] [UiAutomator2] ],
[debug] [UiAutomator2] "parameters": {
[debug] [UiAutomator2] "pointerType": "mouse"
[debug] [UiAutomator2] }
[debug] [UiAutomator2] }
[debug] [UiAutomator2] ]
[debug] [UiAutomator2] Preprocessed actions: [
[debug] [UiAutomator2] {
[debug] [UiAutomator2] "type": "pointer",
[debug] [UiAutomator2] "id": "mouse",
[debug] [UiAutomator2] "actions": [
[debug] [UiAutomator2] {
[debug] [UiAutomator2] "type": "pointerMove",
[debug] [UiAutomator2] "duration": 50,
[debug] [UiAutomator2] "x": 0,
[debug] [UiAutomator2] "y": 0,
[debug] [UiAutomator2] "origin": {
[debug] [UiAutomator2] "element-6066-11e4-a52e-4f735466cecf": "bd61d4fc-5ce9-441e-a7dc-6c4b0a50a12f"
[debug] [UiAutomator2] }
[debug] [UiAutomator2] },
[debug] [UiAutomator2] {
[debug] [UiAutomator2] "type": "pointerDown",
[debug] [UiAutomator2] "button": 0
[debug] [UiAutomator2] },
[debug] [UiAutomator2] {
[debug] [UiAutomator2] "type": "pointerUp",
[debug] [UiAutomator2] "button": 0
[debug] [UiAutomator2] }
[debug] [UiAutomator2] ],
[debug] [UiAutomator2] "parameters": {
[debug] [UiAutomator2] "pointerType": "touch"
[debug] [UiAutomator2] }
[debug] [UiAutomator2] }
[debug] [UiAutomator2] ]
[debug] [JSONWP Proxy] Matched '/actions' to command name 'performActions'
[debug] [JSONWP Proxy] Proxying [POST /actions] to [POST http://localhost:8200/wd/hub/session/38a3ab68-ad02-4881-9e6a-869c9f150390/actions] with body: {"actions":[{"type":"pointer","id":"mouse","actions":[{"type":"pointerMove","duration":50,"x":0,"y":0,"origin":{"element-6066-11e4-a52e-4f735466cecf":"bd61d4fc-5ce9-441e-a7dc-6c4b0a50a12f"}},{"type":"pointerDown","button":0},{"type":"pointerUp","button":0}],"parameters":{"pointerType":"mouse"}}]}
[JSONWP Proxy] Got an unexpected response: {"sessionId":"38a3ab68-ad02-4881-9e6a-869c9f150390","status":13,"value":"Unable to perform W3C actions. Check the logcat output for possible error reports and make sure your input actions chain is valid."}
[debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
[debug] [W3C (3a38fe61)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to perform W3C actions. Check the logcat output for possible error reports and make sure your input actions chain is valid.
[debug] [W3C (3a38fe61)] at errorFromMJSONWPStatusCode (/Users/kazuaki/GitHub/appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10)
[debug] [W3C (3a38fe61)] at ProxyRequestError.getActualError (/Users/kazuaki/GitHub/appium/node_modules/appium-base-driver/lib/protocol/errors.js:683:14)
[debug] [W3C (3a38fe61)] at /Users/kazuaki/GitHub/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:234:19
[debug] [W3C (3a38fe61)] at Generator.throw (<anonymous>)
[debug] [W3C (3a38fe61)] at asyncGeneratorStep (/Users/kazuaki/GitHub/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
[debug] [W3C (3a38fe61)] at _throw (/Users/kazuaki/GitHub/appium/node_modules/@babel/runtime/helpers/asyncToGenerator.js:29:9)
[HTTP] <-- POST /wd/hub/session/3a38fe61-1fd5-4403-827c-ccb1f4123950/actions 500 180 ms - 1134
[HTTP]
2018-10-30 17:23:11.036 11475-11481/io.appium.android.apis I/zygote: Do full code cache collection, code=125KB, data=68KB
2018-10-30 17:23:11.036 11475-11481/io.appium.android.apis I/zygote: After code cache collection, code=107KB, data=45KB
2018-10-30 17:23:20.395 11444-11498/io.appium.uiautomator2.server I/appium: channel read invoked!
2018-10-30 17:23:20.396 11444-11498/io.appium.uiautomator2.server I/appium: channel read: POST /wd/hub/session/38a3ab68-ad02-4881-9e6a-869c9f150390/actions
2018-10-30 17:23:20.397 11444-11498/io.appium.uiautomator2.server D/appium: payload: {"actions":[{"type":"pointer","id":"mouse","actions":[{"type":"pointerMove","duration":50,"x":0,"y":0,"origin":{"element-6066-11e4-a52e-4f735466cecf":"bd61d4fc-5ce9-441e-a7dc-6c4b0a50a12f"}},{"type":"pointerDown","button":0},{"type":"pointerUp","button":0}],"parameters":{"pointerType":"mouse"}}]}
2018-10-30 17:23:20.410 11444-11449/io.appium.uiautomator2.server I/zygote: Do partial code cache collection, code=60KB, data=33KB
2018-10-30 17:23:20.410 11444-11449/io.appium.uiautomator2.server I/zygote: After code cache collection, code=60KB, data=33KB
2018-10-30 17:23:20.410 11444-11449/io.appium.uiautomator2.server I/zygote: Increasing code cache capacity to 256KB
2018-10-30 17:23:20.493 1686-4107/system_process E/InputDispatcher: Motion event has duplicate pointer id 0
2018-10-30 17:23:20.493 1686-4107/system_process W/InputManager: Input event injection from pid 11434 failed.
2018-10-30 17:23:20.494 11444-11498/io.appium.uiautomator2.server D/appium: [3689848 (fail)] Synthesized MotionEvent { action=ACTION_POINTER_DOWN(0), actionButton=0, id[0]=0, x[0]=540.0, y[0]=1692.0, toolType[0]=TOOL_TYPE_MOUSE, id[1]=0, x[1]=540.0, y[1]=1692.0, toolType[1]=TOOL_TYPE_MOUSE, buttonState=BUTTON_PRIMARY, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=2, historySize=0, eventTime=3689862, downTime=3689848, deviceId=0, source=0x2002 }
2018-10-30 17:23:20.494 1686-4107/system_process E/InputDispatcher: Motion event has duplicate pointer id 0
2018-10-30 17:23:20.495 11444-11498/io.appium.uiautomator2.server D/appium: [3689848 (fail)] Synthesized MotionEvent { action=ACTION_POINTER_UP(0), actionButton=0, id[0]=0, x[0]=540.0, y[0]=1692.0, toolType[0]=TOOL_TYPE_MOUSE, id[1]=0, x[1]=540.0, y[1]=1692.0, toolType[1]=TOOL_TYPE_MOUSE, buttonState=BUTTON_PRIMARY, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=2, historySize=0, eventTime=3689864, downTime=3689848, deviceId=0, source=0x2002 }
2018-10-30 17:23:20.501 11444-11498/io.appium.uiautomator2.server I/appium: AppiumResponse: {"sessionId":"38a3ab68-ad02-4881-9e6a-869c9f150390","status":13,"value":"Unable to perform W3C actions. Check the logcat output for possible error reports and make sure your input actions chain is valid."}
2018-10-30 17:23:27.989 1686-1702/system_process E/memtrack: Couldn't load memtrack module
2018-10-30 17:23:27.989 1686-1702/system_process W/android.os.Debug: failed to get memory consumption info: -1
2018-10-30 17:23:28.003 1686-1702/system_process E/memtrack: Couldn't load memtrack module
2018-10-30 17:23:28.003 1686-1702/system_process W/android.os.Debug: failed to get memory consumption info: -1
2018-10-30 17:23:28.017 1686-1702/system_process E/memtrack: Couldn't load memtrack module
2018-10-30 17:23:28.017 1686-1702/system_process W/android.os.Debug: failed to get memory consumption info: -1
b672a53006 of master. Server apks are 2.0.0 based.
Appium
Adb