1. execute_script:

proxy.js:51:14 [master] pid:17374 Proxy: /wd/hub/session/:sessionId/window:POST to http://localhost:9521/wd/hub/session/77f8fb7ee9066ceac4e342e1fc6fe65e/window:POST with body: {"name":"CDwindow-c65e7dee-26bb-48f3-90c8-7570372cc443"}
proxy.js:59:16 [master] pid:17374 Got response with status 200: {"sessionId":"77f8fb7ee9066ceac4e342e1fc6fe65e","status":0,"value":null}
responseHandler.js:49:14 [master] pid:17374 Send HTTP Respone to Client[2017-11-14 10:37:50]: {"sessionId":"7595d68e-fbe4-475f-b607-84d28b4520e6","status":0,"value":null}
responseHandler.js:11:12 [master] pid:17374 Recieve HTTP Request from Client[2017-11-14 10:37:50]: method: GET url: /wd/hub/session/7595d68e-fbe4-475f-b607-84d28b4520e6/context, jsonBody: {}
responseHandler.js:49:14 [master] pid:17374 Send HTTP Respone to Client[2017-11-14 10:37:50]: {"sessionId":"7595d68e-fbe4-475f-b607-84d28b4520e6","status":0,"value":"\"CDwindow-c65e7dee-26bb-48f3-90c8-7570372cc443\""}
responseHandler.js:11:12 [master] pid:17374 Recieve HTTP Request from Client[2017-11-14 10:37:50]: method: POST url: /wd/hub/session/7595d68e-fbe4-475f-b607-84d28b4520e6/execute, jsonBody: {"args":[],"script":"scrollTo(0,document.body.scrollHeight)"}
proxy.js:51:14 [master] pid:17374 Proxy: /wd/hub/session/7595d68e-fbe4-475f-b607-84d28b4520e6/execute:POST to http://localhost:9521/wd/hub/session/77f8fb7ee9066ceac4e342e1fc6fe65e/execute:POST with body: {"args":[],"script":"scrollTo(0,document.body.scrollHeight)"}

responseHandler.js:11:12 [master] pid:17374 Recieve HTTP Request from Client[2017-11-14 10:39:50]: method: DELETE url: /wd/hub/session/7595d68e-fbe4-475f-b607-84d28b4520e6, jsonBody: {}
session.js:80:12 [master] pid:17374 Delete session, sessionId: 7595d68e-fbe4-475f-b607-84d28b4520e6
responseHandler.js:49:14 [master] pid:17374 Send HTTP Respone to Client[2017-11-14 10:39:50]: {"sessionId":"7595d68e-fbe4-475f-b607-84d28b4520e6","status":0}
responseHandler.js:56:12 [master] pid:17374 Send Error Respone to Client: Error: chromedriver proxy error with: Error: socket hang up
responseHandler.js:62:14 [master] pid:17374 Error: chromedriver proxy error with: Error: socket hang up
at Request.request as _callback
at self.callback (/usr/local/lib/node_modules/macaca-android/node_modules/_request@2.69.0@request/request.js:199:22)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at Request.onRequestError (/usr/local/lib/node_modules/macaca-android/node_modules/_request@2.69.0@request/request.js:821:8)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at Socket.socketOnEnd (_http_client.js:423:9)
at emitNone (events.js:111:20)
at Socket.emit (events.js:208:7)
Error: chromedriver proxy error with: Error: socket hang up
at Request.request as _callback
at self.callback (/usr/local/lib/node_modules/macaca-android/node_modules/_request@2.69.0@request/request.js:199:22)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at Request.onRequestError (/usr/local/lib/node_modules/macaca-android/node_modules/_request@2.69.0@request/request.js:821:8)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at Socket.socketOnEnd (_http_client.js:423:9)
at emitNone (events.js:111:20)
at Socket.emit (events.js:208:7)

  1. self.driver.switch_to_parent_frame()

session.js:109:14 [master] pid:53085 Send HTTP Respone to Client[2017-11-16 11:18:03]: {"sessionId":"55cadfb0-425a-4766-beec-b1bc0edf0381","status":7,"value":"{\"message\":\"no such element: Unable to locate element: {\\"method\\":\\"id\\",\\"selector\\":\\"com.datebao.datebaoapp:id/dialog_img\\"}\n (Session info: chrome=53.0.2785.49)\n (Driver info: chromedriver=2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Mac OS X 10.10.5 x86_64)\"}"}
responseHandler.js:11:12 [master] pid:53085 Recieve HTTP Request from Client[2017-11-16 11:18:03]: method: POST url: /wd/hub/session/55cadfb0-425a-4766-beec-b1bc0edf0381/frame/parent, jsonBody: {}
responseHandler.js:23:14 [master] pid:53085 Send HTTP Respone to Client[2017-11-16 11:18:03]: 404 Not Found


↙↙↙阅读原文可查看相关链接,并与作者交流