• 我们公司也遇到了

  • macaca 控制微信 webview 失败 at 2017年11月28日

    @whitiancai 问题解决了么

  • Macaca-Java 版入门指南 at 2017年11月24日

    哈喽 请教一下 我本地项目运行找到元素后进行 click() 或者 getText() 都报错:An unknown server-side error occurred while processing the command. 然后 git 了最新的 java 版和 nodejs 版的 demo,也有这个问题。
    下面是我运行 demo 的报错 log:

    UIAutomatorWD http server ready
    proxy.js:55:14 [master] pid:964 Proxy: /wd/hub/session/8beda65d-7ba5-4a93-9bec-8ae74277dc7c/element:POST to http://127.0.0.1:9001/wd/hub/session/8beda65d-7ba5-4a93-9bec-8ae74277dc7c/element:POST with body: {"using":"id","value":"com.github.android_app_bootstrap:id/mobileNoEditText"}
    proxy.js:85:20 [master] pid:964 Got response with status 200: {"status":0,"value":{"ELEMENT":"1"},"sessionId":null}
    session.js:109:14 [master] pid:964 Send HTTP Respone to Client[2017-11-24 18:00:10]: {"status":0,"value":"{\"ELEMENT\":\"1\"}","sessionId":null}
    responseHandler.js:11:12 [master] pid:964 Recieve HTTP Request from Client[2017-11-24 18:00:10]: method: POST url: /wd/hub/session/8beda65d-7ba5-4a93-9bec-8ae74277dc7c/element/1/value, jsonBody: {"value":["中文 +Test+12345678"]}
    restart UIAutomatorWD server
    uiautomator-client.js:61:14 [master] pid:964 INSTRUMENTATION_RESULT: shortMsg=Process crashed.
    uiautomator-client.js:61:14 [master] pid:964
    INSTRUMENTATION_CODE: 0

    uiautomator-client.js:61:14 [master] pid:964 INSTRUMENTATION_STATUS: numtests=1

    uiautomator-client.js:61:14 [master] pid:964 INSTRUMENTATION_STATUS: stream=
    com.macaca.android.testing.UIAutomatorWD:
    INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
    INSTRUMENTATION_STATUS: test=MacacaTestRunner
    INSTRUMENTATION_STATUS: class=com.macaca.android.testing.UIAutomatorWD
    INSTRUMENTATION_STATUS: current=1
    INSTRUMENTATION_STATUS_CODE: 1

    uiautomator-client.js:61:14 [master] pid:964 INSTRUMENTATION_STATUS: stream=
    uiautomator-client.js:61:14 [master] pid:964

    uiautomator-client.js:61:14 [master] pid:964 UIAutomatorWD->http://localhost:9001<-UIAutomatorWD
    UIAutomatorWD http server ready
    proxy.js:55:14 [master] pid:964 Proxy: /wd/hub/session/8beda65d-7ba5-4a93-9bec-8ae74277dc7c/element/1/value:POST to http://127.0.0.1:9001/wd/hub/session/8beda65d-7ba5-4a93-9bec-8ae74277dc7c/element/1/value:POST with body: {"value":["中文 +Test+12345678"]}
    uiautomator-client.js:61:14 [master] pid:964
    INSTRUMENTATION_STATUS_CODE: 0

    proxy.js:85:20 [master] pid:964 Got response with status 200: {"status":13,"value":"An unknown server-side error occurred while processing the command.","sessionId":"8beda65d-7ba5-4a93-9bec-8ae74277dc7c"}
    session.js:109:14 [master] pid:964 Send HTTP Respone to Client[2017-11-24 18:00:13]: {"status":13,"value":"\"An unknown server-side error occurred while processing the command.\"","sessionId":"8beda65d-7ba5-4a93-9bec-8ae74277dc7c"}
    responseHandler.js:11:12 [master] pid:964 Recieve HTTP Request from Client[2017-11-24 18:00:13]: method: DELETE url: /wd/hub/session/8beda65d-7ba5-4a93-9bec-8ae74277dc7c, jsonBody: {}
    session.js:80:12 [master] pid:964 Delete session, sessionId: 8beda65d-7ba5-4a93-9bec-8ae74277dc7c
    responseHandler.js:49:14 [master] pid:964 Send HTTP Respone to Client[2017-11-24 18:00:13]: {"sessionId":"8beda65d-7ba5-4a93-9bec-8ae74277dc7c","status":0

  • 我也遇到了跟你一样的问题,请问解决了么

  • 安装的 macaca-android@2.0.40 ,找到元素以后的 getText() 和 click() 都不行。
    报错信息:An unknown server-side error occurred while processing the command.有遇到这个情况么

    具体 log:

    proxy.js:85:20 [master] pid:65454 Got response with status 200: {"status":0,"value":{"ELEMENT":"1"},"sessionId":"594f3b0f-a4ce-4208-b083-4e4ecf71aa8b"}
    session.js:109:14 [master] pid:65454 Send HTTP Respone to Client[2017-11-24 11:40:23]: {"status":0,"value":"{\"ELEMENT\":\"1\"}","sessionId":"594f3b0f-a4ce-4208-b083-4e4ecf71aa8b"}
    responseHandler.js:11:12 [master] pid:65454 Recieve HTTP Request from Client[2017-11-24 11:40:23]: method: GET url: /wd/hub/session/594f3b0f-a4ce-4208-b083-4e4ecf71aa8b/element/1/text, jsonBody: {}
    restart UIAutomatorWD server
    uiautomator-client.js:61:14 [master] pid:65454 INSTRUMENTATION_RESULT: shortMsg=Process crashed.
    INSTRUMENTATION_CODE: 0
    uiautomator-client.js:61:14 [master] pid:65454

    uiautomator-client.js:61:14 [master] pid:65454 INSTRUMENTATION_STATUS: numtests=1
    uiautomator-client.js:61:14 [master] pid:65454

    uiautomator-client.js:61:14 [master] pid:65454 INSTRUMENTATION_STATUS: stream=
    uiautomator-client.js:61:14 [master] pid:65454
    com.macaca.android.testing.UIAutomatorWD:
    INSTRUMENTATION_STATUS: id=AndroidJUnitRunner

    uiautomator-client.js:61:14 [master] pid:65454 INSTRUMENTATION_STATUS: test=MacacaTestRunner
    uiautomator-client.js:61:14 [master] pid:65454

    uiautomator-client.js:61:14 [master] pid:65454 INSTRUMENTATION_STATUS: class=com.macaca.android.testing.UIAutomatorWD
    INSTRUMENTATION_STATUS: current=1

    uiautomator-client.js:61:14 [master] pid:65454 INSTRUMENTATION_STATUS_CODE: 1
    uiautomator-client.js:61:14 [master] pid:65454

    uiautomator-client.js:61:14 [master] pid:65454 INSTRUMENTATION_STATUS: stream=
    uiautomator-client.js:61:14 [master] pid:65454
    UIAutomatorWD->http://localhost:62348<-UIAutomatorWD
    INSTRUMENTATION_STATUS_CODE: 0

    UIAutomatorWD http server ready
    proxy.js:55:14 [master] pid:65454 Proxy: /wd/hub/session/:sessionId/accept_alert:POST to http://127.0.0.1:62348/wd/hub/session/:sessionId/accept_alert:POST with body: {}
    proxy.js:85:20 [master] pid:65454 Got response with status 200: {"status":0,"sessionId":":sessionId"}
    restart UIAutomatorWD server
    uiautomator-client.js:61:14 [master] pid:65454 INSTRUMENTATION_RESULT: shortMsg=Process crashed.

    uiautomator-client.js:61:14 [master] pid:65454 INSTRUMENTATION_CODE: 0

    uiautomator-client.js:61:14 [master] pid:65454 INSTRUMENTATION_STATUS: numtests=1

    uiautomator-client.js:61:14 [master] pid:65454 INSTRUMENTATION_STATUS: stream=
    com.macaca.android.testing.UIAutomatorWD:
    INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
    INSTRUMENTATION_STATUS: test=MacacaTestRunner
    INSTRUMENTATION_STATUS: class=com.macaca.android.testing.UIAutomatorWD

    uiautomator-client.js:61:14 [master] pid:65454 INSTRUMENTATION_STATUS: current=1
    INSTRUMENTATION_STATUS_CODE: 1

    uiautomator-client.js:61:14 [master] pid:65454 INSTRUMENTATION_STATUS: stream=
    UIAutomatorWD->http://localhost:62348<-UIAutomatorWD
    UIAutomatorWD http server ready
    proxy.js:55:14 [master] pid:65454 Proxy: /wd/hub/session/594f3b0f-a4ce-4208-b083-4e4ecf71aa8b/element/1/text:GET to http://127.0.0.1:62348/wd/hub/session/:sessionId/element/1/text:GET with body: {}
    uiautomator-client.js:61:14 [master] pid:65454
    INSTRUMENTATION_STATUS_CODE: 0

    proxy.js:85:20 [master] pid:65454 Got response with status 200: {"status":13,"value":"An unknown server-side error occurred while processing the command.","sessionId":"594f3b0f-a4ce-4208-b083-4e4ecf71aa8b"}
    session.js:109:14 [master] pid:65454 Send HTTP Respone to Client[2017-11-24 11:40:26]: {"status":13,"value":"\"An unknown server-side error occurred while processing the command.\"","sessionId":"594f3b0f-a4ce-4208-b083-4e4ecf71aa8b"}

  • @chenxin 获取不到元素的问题 你解决了么

  • 运行了脚本,获取的元素无法点击啊,提示 An unknown server-side error occurred while processing the command. 请问有遇到么

    UIAutomatorWD http server ready
    proxy.js:55:14 [master] pid:63976 Proxy: /wd/hub/session/:sessionId/accept_alert:POST to http://127.0.0.1:9007/wd/hub/session/:sessionId/accept_alert:POST with body: {}
    proxy.js:85:20 [master] pid:63976 Got response with status 200: {"status":0,"sessionId":":sessionId"}
    restart UIAutomatorWD server
    uiautomator-client.js:61:14 [master] pid:63976 INSTRUMENTATION_RESULT: shortMsg=Process crashed.
    uiautomator-client.js:61:14 [master] pid:63976
    INSTRUMENTATION_CODE: 0

    uiautomator-client.js:61:14 [master] pid:63976 INSTRUMENTATION_STATUS: numtests=1
    uiautomator-client.js:61:14 [master] pid:63976
    INSTRUMENTATION_STATUS: stream=
    com.macaca.android.testing.UIAutomatorWD:
    INSTRUMENTATION_STATUS: id=AndroidJUnitRunner

    uiautomator-client.js:61:14 [master] pid:63976 INSTRUMENTATION_STATUS: test=MacacaTestRunner
    INSTRUMENTATION_STATUS: class=com.macaca.android.testing.UIAutomatorWD
    uiautomator-client.js:61:14 [master] pid:63976
    INSTRUMENTATION_STATUS: current=1
    INSTRUMENTATION_STATUS_CODE: 1

    uiautomator-client.js:61:14 [master] pid:63976 INSTRUMENTATION_STATUS: stream=
    uiautomator-client.js:61:14 [master] pid:63976
    UIAutomatorWD->http://localhost:9007<-UIAutomatorWD
    INSTRUMENTATION_STATUS_CODE: 0

    UIAutomatorWD http server ready
    proxy.js:55:14 [master] pid:63976 Proxy: /wd/hub/session/329e1239-a666-4340-94a7-6cccc1d9a645/element/1/click:POST to http://127.0.0.1:9007/wd/hub/session/:sessionId/element/1/click:POST with body: {}
    proxy.js:85:20 [master] pid:63976 Got response with status 200: {"status":13,"value":"An unknown server-side error occurred while processing the command.","sessionId":"329e1239-a666-4340-94a7-6cccc1d9a645"}
    session.js:109:14 [master] pid:63976 Send HTTP Respone to Client[2017-11-24 10:29:51]: {"status":13,"value":"\"An unknown server-side error occurred while processing the command.\"","sessionId":"329e1239-a666-4340-94a7-6cccc1d9a645"}