【Mac+appium+android】操作appium获取元素时报错 Original error: ‘POST /touch/perform’ cannot be proxied to UiAutomator2 server because the instrumentation process is not running (probably crashed). 解决方案()

一、问题描述

  操作appium获取元素时报错:[performTouchAction([{“action”:”press”,”options”:{“x”:508,”y”:1556}},{“action”:”wait”,”options”:{“ms”:500}},{“action”:”moveTo”,”options”:{“x”:554,”y”:1556}},{“action”:”release”,”options”:{}}])] Error response status: 13, , UnknownError – An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: ‘POST /touch/perform’ cannot be proxied to UiAutomator2 server because the instrumentation process is not running (probably crashed). Check the server log and/or the logcat output for more details

二、解决方案

  在终端执行命令:

adb kill-server
adb start-server
————————

一、问题描述

  操作appium获取元素时报错:[performTouchAction([{“action”:”press”,”options”:{“x”:508,”y”:1556}},{“action”:”wait”,”options”:{“ms”:500}},{“action”:”moveTo”,”options”:{“x”:554,”y”:1556}},{“action”:”release”,”options”:{}}])] Error response status: 13, , UnknownError – An unknown server-side error occurred while processing the command. Selenium error: An unknown server-side error occurred while processing the command. Original error: ‘POST /touch/perform’ cannot be proxied to UiAutomator2 server because the instrumentation process is not running (probably crashed). Check the server log and/or the logcat output for more details

二、解决方案

  在终端执行命令:

adb kill-server
adb start-server