• #1 楼 @gz19891020 你是指 name 就是 ID 的值?

  • @x746560359 这个问题你解决了吗。碰到同样的问题

  • #5 楼 @wang04170 你这个问题解决了吗

  • [36minfo[39m: [37m-->[39m [37mGET[39m [37m/wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element/0.6807265898678452-1/displayed[39m [90m{}[39m
    [36minfo[39m: JSONWP Proxy: Proxying [GET /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element/0.6807265898678452-1/displayed] to [GET http://127.0.0.1:9515/wd/hub/session/e89b5704975b3a112dc7bd1184900a6c/element/0.6807265898678452-1/displayed] with body: {}
    [36minfo[39m: JSONWP Proxy: Got response with status 200: {"sessionId":"e89b5704975b3a112dc7bd1184900a6c","status":0,"value":true}
    [36minfo[39m: JSONWP Proxy: Replacing sessionId e89b5704975b3a112dc7bd1184900a6c with 15c97430-8a97-4dce-932a-347f4ed20ba7
    [36minfo[39m: [37m<-- GET /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element/0.6807265898678452-1/displayed [39m[32m200[39m[90m 37.142 ms - 76[39m [90m[39m
    [36minfo[39m: [37m-->[39m [37mPOST[39m [37m/wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element[39m [90m{"using":"xpath","sessionId":"15c97430-8a97-4dce-932a-347f4ed20ba7","value":"//[@id='return_ing_list']/li[1]/a/div[2]/h3"}[39m
    [36minfo[39m: JSONWP Proxy: Proxying [POST /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element] to [POST http://127.0.0.1:9515/wd/hub/session/e89b5704975b3a112dc7bd1184900a6c/element] with body: {"using":"xpath","sessionId":"15c97430-8a97-4dce-932a-347f4ed20ba7","value":"//
    [@id='return_ing_list']/li[1]/a/div[2]/h3"}
    [36minfo[39m: JSONWP Proxy: Got response with status 200: {"sessionId":"e89b5704975b3a112dc7bd1184900a6c","status":0,"value":{"ELEMENT":"0.6807265898678452-1"}}
    [36minfo[39m: JSONWP Proxy: Replacing sessionId e89b5704975b3a112dc7bd1184900a6c with 15c97430-8a97-4dce-932a-347f4ed20ba7
    [36minfo[39m: [37m<-- POST /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element [39m[32m200[39m[90m 35.615 ms - 106[39m [90m[39m
    [36minfo[39m: [37m-->[39m [37mPOST[39m [37m/wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element/0.6807265898678452-1/click[39m [90m{"sessionId":"15c97430-8a97-4dce-932a-347f4ed20ba7","id":"0.6807265898678452-1"}[39m
    [36minfo[39m: JSONWP Proxy: Proxying [POST /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element/0.6807265898678452-1/click] to [POST http://127.0.0.1:9515/wd/hub/session/e89b5704975b3a112dc7bd1184900a6c/element/0.6807265898678452-1/click] with body: {"sessionId":"15c97430-8a97-4dce-932a-347f4ed20ba7","id":"0.6807265898678452-1"}
    [36minfo[39m: JSONWP Proxy: Got response with status 200: {"sessionId":"e89b5704975b3a112dc7bd1184900a6c","status":0,"value":null}
    [36minfo[39m: JSONWP Proxy: Replacing sessionId e89b5704975b3a112dc7bd1184900a6c with 15c97430-8a97-4dce-932a-347f4ed20ba7
    [36minfo[39m: [37m<-- POST /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element/0.6807265898678452-1/click [39m[32m200[39m[90m 105.626 ms - 76[39m [90m[39m
    [36minfo[39m: [37m-->[39m [37mGET[39m [37m/wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/window_handles[39m [90m{}[39m
    [36minfo[39m: JSONWP Proxy: Proxying [GET /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/window_handles] to [GET http://127.0.0.1:9515/wd/hub/session/e89b5704975b3a112dc7bd1184900a6c/window_handles] with body: {}
    [36minfo[39m: JSONWP Proxy: Got response with status 200: {"sessionId":"e89b5704975b3a112dc7bd1184900a6c","status":0,"value":["CDwindow-A76D005F-D808-467F-8CE8-73EF5F26F61C","CDwindow-5CB2CB66-6383-495D-88B8-A3879796FD26"]}
    [36minfo[39m: JSONWP Proxy: Replacing sessionId e89b5704975b3a112dc7bd1184900a6c with 15c97430-8a97-4dce-932a-347f4ed20ba7
    [36minfo[39m: [37m<-- GET /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/window_handles [39m[32m200[39m[90m 12.429 ms - 169[39m [90m[39m
    [36minfo[39m: [37m-->[39m [37mPOST[39m [37m/wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/window[39m [90m{"sessionId":"15c97430-8a97-4dce-932a-347f4ed20ba7","name":"CDwindow-5CB2CB66-6383-495D-88B8-A3879796FD26"}[39m
    [36minfo[39m: JSONWP Proxy: Proxying [POST /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/window] to [POST http://127.0.0.1:9515/wd/hub/session/e89b5704975b3a112dc7bd1184900a6c/window] with body: {"sessionId":"15c97430-8a97-4dce-932a-347f4ed20ba7","name":"CDwindow-5CB2CB66-6383-495D-88B8-A3879796FD26"}
    [36minfo[39m: JSONWP Proxy: Got response with status 200: {"sessionId":"e89b5704975b3a112dc7bd1184900a6c","status":0,"value":null}
    [36minfo[39m: JSONWP Proxy: Replacing sessionId e89b5704975b3a112dc7bd1184900a6c with 15c97430-8a97-4dce-932a-347f4ed20ba7
    [36minfo[39m: [37m<-- POST /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/window [39m[32m200[39m[90m 11.931 ms - 76[39m [90m[39m
    [36minfo[39m: [37m-->[39m [37mPOST[39m [37m/wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element[39m [90m{"using":"xpath","sessionId":"15c97430-8a97-4dce-932a-347f4ed20ba7","value":"/html/body/div/div[2]/a/p[1]"}[39m
    [36minfo[39m: JSONWP Proxy: Proxying [POST /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element] to [POST http://127.0.0.1:9515/wd/hub/session/e89b5704975b3a112dc7bd1184900a6c/element] with body: {"using":"xpath","sessionId":"15c97430-8a97-4dce-932a-347f4ed20ba7","value":"/html/body/div/div[2]/a/p[1]"}
    [36minfo[39m: JSONWP Proxy: Got response with status 200: {"sessionId":"e89b5704975b3a112dc7bd1184900a6c","status":0,"value":{"ELEMENT":"0.4724039069842547-1"}}
    [36minfo[39m: JSONWP Proxy: Replacing sessionId e89b5704975b3a112dc7bd1184900a6c with 15c97430-8a97-4dce-932a-347f4ed20ba7
    [36minfo[39m: [37m<-- POST /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element [39m[32m200[39m[90m 158.674 ms - 106[39m [90m[39m
    [36minfo[39m: [37m-->[39m [37mGET[39m [37m/wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element/0.4724039069842547-1/displayed[39m [90m{}[39m
    [36minfo[39m: JSONWP Proxy: Proxying [GET /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element/0.4724039069842547-1/displayed] to [GET http://127.0.0.1:9515/wd/hub/session/e89b5704975b3a112dc7bd1184900a6c/element/0.4724039069842547-1/displayed] with body: {}
    [36minfo[39m: JSONWP Proxy: Got response with status 200: {"sessionId":"e89b5704975b3a112dc7bd1184900a6c","status":0,"value":true}
    [36minfo[39m: JSONWP Proxy: Replacing sessionId e89b5704975b3a112dc7bd1184900a6c with 15c97430-8a97-4dce-932a-347f4ed20ba7
    [36minfo[39m: [37m<-- GET /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element/0.4724039069842547-1/displayed [39m[32m200[39m[90m 70.954 ms - 76[39m [90m[39m
    [36minfo[39m: [37m-->[39m [37mPOST[39m [37m/wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element[39m [90m{"using":"xpath","sessionId":"15c97430-8a97-4dce-932a-347f4ed20ba7","value":"/html/body/div/div[2]/a/p[1]"}[39m
    [36minfo[39m: JSONWP Proxy: Proxying [POST /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element] to [POST http://127.0.0.1:9515/wd/hub/session/e89b5704975b3a112dc7bd1184900a6c/element] with body: {"using":"xpath","sessionId":"15c97430-8a97-4dce-932a-347f4ed20ba7","value":"/html/body/div/div[2]/a/p[1]"}
    [36minfo[39m: JSONWP Proxy: Got response with status 200: {"sessionId":"e89b5704975b3a112dc7bd1184900a6c","status":0,"value":{"ELEMENT":"0.4724039069842547-1"}}
    [36minfo[39m: JSONWP Proxy: Replacing sessionId e89b5704975b3a112dc7bd1184900a6c with 15c97430-8a97-4dce-932a-347f4ed20ba7
    [36minfo[39m: [37m<-- POST /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element [39m[32m200[39m[90m 70.501 ms - 106[39m [90m[39m
    [36minfo[39m: [37m-->[39m [37mGET[39m [37m/wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element/0.4724039069842547-1/text[39m [90m{}[39m
    [36minfo[39m: JSONWP Proxy: Proxying [GET /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element/0.4724039069842547-1/text] to [GET http://127.0.0.1:9515/wd/hub/session/e89b5704975b3a112dc7bd1184900a6c/element/0.4724039069842547-1/text] with body: {}
    [36minfo[39m: JSONWP Proxy: Got response with status 200: {"sessionId":"e89b5704975b3a112dc7bd1184900a6c","status":0,"value":"投资成功,开始计息,已使用 0.33% 加息券"}
    [36minfo[39m: JSONWP Proxy: Replacing sessionId e89b5704975b3a112dc7bd1184900a6c with 15c97430-8a97-4dce-932a-347f4ed20ba7
    [36minfo[39m: [37m<-- GET /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element/0.4724039069842547-1/text [39m[32m200[39m[90m 97.603 ms - 127[39m [90m[39m
    [36minfo[39m: [37m-->[39m [37mGET[39m [37m/wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/screenshot[39m [90m{}[39m
    [36minfo[39m: JSONWP Proxy: Proxying [GET /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/screenshot] to [GET http://127.0.0.1:9515/wd/hub/session/e89b5704975b3a112dc7bd1184900a6c/screenshot] with body: {}
    [36minfo[39m: [debug] Didn't get a new command in 60 secs, shutting down...
    [36minfo[39m: Shutting down appium session
    [36minfo[39m: [debug] Pressing the HOME button
    [36minfo[39m: [debug] executing cmd: /Users/yzt_test/Documents/adt-bundle-mac-x86_64/sdk/platform-tools/adb -s 03157df3a0531722 shell "input keyevent 3"
    [36minfo[39m: [debug] Stopping logcat capture
    [36minfo[39m: [debug] Logcat terminated with code null, signal SIGTERM
    [36minfo[39m: [debug] Stopping chromedriver for context WEBVIEW_com.yingzt.invest
    [36minfo[39m: Chromedriver: Changed state to 'stopping'
    [36minfo[39m: JSONWP Proxy: Proxying [DELETE /] to [DELETE http://127.0.0.1:9515/wd/hub/session/e89b5704975b3a112dc7bd1184900a6c] with no body
    [36minfo[39m: [37m<-- GET /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/screenshot [39m[32m-[39m[90m - ms - -[39m [90m[39m
    [36minfo[39m: [37m-->[39m [37mGET[39m [37m/wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/screenshot[39m [90m{}[39m
    [36minfo[39m: JSONWP Proxy: Proxying [GET /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/screenshot] to [GET http://127.0.0.1:9515/wd/hub/session/e89b5704975b3a112dc7bd1184900a6c/screenshot] with body: {}
    [36minfo[39m: Chromedriver: [STDERR] [605.183][SEVERE]: Timed out receiving message from renderer: 600.000
    [36minfo[39m: JSONWP Proxy: Got response with status 200: {"sessionId":"e89b5704975b3a112dc7bd1184900a6c","status":21,"value":{"message":"timeout: Timed out receiving message from renderer: 600.000\n (Session info: chrome=43.0.2357.121)\n (Driver info: chr...
    [36minfo[39m: JSONWP Proxy: Replacing sessionId e89b5704975b3a112dc7bd1184900a6c with 15c97430-8a97-4dce-932a-347f4ed20ba7
    [36minfo[39m: JSONWP Proxy: Got response with status 200: {"sessionId":"e89b5704975b3a112dc7bd1184900a6c","status":0,"value":null}
    [36minfo[39m: JSONWP Proxy: Got response with status 200: {"sessionId":"","status":6,"value":{"message":"no such session\n (Driver info: chromedriver=2.18.343837 (52eb4041461e46a6b73308ebb19e85787ced4281),platform=Mac OS X 10.11.2 x86_64)"}}
    [36minfo[39m: [37m<-- GET /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/screenshot [39m[32m200[39m[90m 10.175 ms - 184[39m [90m[39m
    [36minfo[39m: Chromedriver: Changed state to 'stopped'
    [36minfo[39m: [37m-->[39m [37mDELETE[39m [37m/wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7[39m [90m{}[39m
    [36minfo[39m: [37m<-- DELETE /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7 [39m[33m404[39m[90m 1.310 ms - 40[39m [90m[39m
    [36minfo[39m: [37m-->[39m [37mPOST[39m [37m/wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element[39m [90m{"using":"id","sessionId":"15c97430-8a97-4dce-932a-347f4ed20ba7","value":"com.yingzt.invest:id/tab_me"}[39m
    [36minfo[39m: [37m<-- POST /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/element [39m[33m404[39m[90m 1.297 ms - 40[39m [90m[39m
    [36minfo[39m: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"shutdown"}
    [36minfo[39m: [debug] [BOOTSTRAP] [debug] Got command of type SHUTDOWN
    [36minfo[39m: [debug] [BOOTSTRAP] [debug] Returning result: {"status":0,"value":"OK, shutting down"}
    [36minfo[39m: [debug] Sent shutdown command, waiting for UiAutomator to stop...
    [36minfo[39m: [debug] [BOOTSTRAP] [debug] Closed client connection
    [36minfo[39m: [debug] [90m[UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1[39m
    [36minfo[39m: [debug] [90m[UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.[39m
    [36minfo[39m: [debug] [90m[UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner[39m
    [36minfo[39m: [debug] [90m[UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer[39m
    [36minfo[39m: [debug] [90m[UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap[39m
    [36minfo[39m: [debug] [90m[UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1[39m
    [36minfo[39m: [debug] [90m[UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0[39m
    [36minfo[39m: [debug] [90m[UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=[39m
    [36minfo[39m: [debug] [90m[UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.[39m
    [36minfo[39m: [debug] [90m[UIAUTOMATOR STDOUT] Time: 614.002[39m
    [36minfo[39m: [debug] [90m[UIAUTOMATOR STDOUT] OK (1 test)[39m
    [36minfo[39m: [debug] [90m[UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1[39m
    [36minfo[39m: [debug] UiAutomator shut down normally
    [36minfo[39m: [debug] Cleaning up android objects
    [36minfo[39m: [debug] Cleaning up appium session
    [36minfo[39m: [debug] We shut down because no new commands came in
    [36minfo[39m: [37m-->[39m [37mGET[39m [37m/wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/screenshot[39m [90m{}[39m
    [36minfo[39m: [37m<-- GET /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/screenshot [39m[33m404[39m[90m 1.068 ms - 40[39m [90m[39m
    [36minfo[39m: [37m-->[39m [37mGET[39m [37m/wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/screenshot[39m [90m{}[39m
    [36minfo[39m: [37m<-- GET /wd/hub/session/15c97430-8a97-4dce-932a-347f4ed20ba7/screenshot [39m[33m404[39m[90m 0.682 ms - 40[39m [90m[39m
    ERROR

  • #11 楼 @sanlengjingvv 前面的截图是报截图失败的日志

  • #1 楼 @neyo 已改

  • 你这个问题解决了吗,我切换到 webview 后,在查找元素,运行非常缓慢,会卡住差不多半个小时

  • 深圳 +1