XCTestWD icon indicating copy to clipboard operation
XCTestWD copied to clipboard

切换webview后,对控件进行点击或输入失败

Open crazymanpj opened this issue 5 years ago • 1 comments

切换webview后,对控件进行点击或输入失败,server报的日志如下:

proxy.js:85:20 [master] pid:1844 Got response with status 200: {"status":0,"value":"","sessionId":""} session.js:120:14 [master] pid:1844 Send HTTP Respone to Client[2020-12-11 14:39:19]: {"status":0,"value":"","sessionId":""} responseHandler.js:11:12 [master] pid:1844 Recieve HTTP Request from Client[2020-12-11 14:39:29]: method: GET url: /wd/hub/session/9db3be7a-9e40-432b-917d-e02cc3897d5d/contexts, jsonBody: {} ios_webkit_debug_proxy path: /usr/local/bin/ios_webkit_debug_proxy remote-debugger.js:99:14 [master] pid:1844 Fetching devices from http://localhost:9221/json remote-debugger.js:118:14 [master] pid:1844 Configure port: 9222 for deviceId: 64a4f7c97d9433cbe1557515b1c82874e80374f0 remote-debugger.js:134:14 [master] pid:1844 Getting pages from url: http://localhost:9222/json responseHandler.js:49:14 [master] pid:1844 Send HTTP Respone to Client[2020-12-11 14:39:31]: {"sessionId":"9db3be7a-9e40-432b-917d-e02cc3897d5d","status":0,"value":"["NATIVE_APP","WEBVIEW_1"]"} responseHandler.js:11:12 [master] pid:1844 Recieve HTTP Request from Client[2020-12-11 14:39:31]: method: POST url: /wd/hub/session/9db3be7a-9e40-432b-917d-e02cc3897d5d/context, jsonBody: {"name":"WEBVIEW_1"} remote-debugger.js:134:14 [master] pid:1844 Getting pages from url: http://localhost:9222/json client.js:31:16 [master] pid:1844 Remote debugger connected to websocket url: ws://localhost:9222/devtools/page/1 responseHandler.js:49:14 [master] pid:1844 Send HTTP Respone to Client[2020-12-11 14:39:31]: {"sessionId":"9db3be7a-9e40-432b-917d-e02cc3897d5d","status":0,"value":null} client.js:51:12 [master] pid:1844 Get result from websocket: {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"page-6","type":"page"}}} responseHandler.js:11:12 [master] pid:1844 Recieve HTTP Request from Client[2020-12-11 14:39:31]: method: GET url: /wd/hub/session/9db3be7a-9e40-432b-917d-e02cc3897d5d/context, jsonBody: {} remote-debugger.js:134:14 [master] pid:1844 Getting pages from url: http://localhost:9222/json responseHandler.js:49:14 [master] pid:1844 Send HTTP Respone to Client[2020-12-11 14:39:31]: {"sessionId":"9db3be7a-9e40-432b-917d-e02cc3897d5d","status":0,"value":""WEBVIEW_1""} responseHandler.js:11:12 [master] pid:1844 Recieve HTTP Request from Client[2020-12-11 14:39:31]: method: POST url: /wd/hub/session/9db3be7a-9e40-432b-917d-e02cc3897d5d/element, jsonBody: {"using":"id","value":"identifierId"} remote-debugger.js:134:14 [master] pid:1844 Getting pages from url: http://localhost:9222/json client.js:115:14 [master] pid:1844 Send command to websocket: {"method":"Runtime.evaluate","params":{"expression":"(function(){return function(){var l=this;function aa(a){return void 0!==a}function ba(a,b){var c=a.split("."),d=l;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&aa(b)?d[e]=b:d[e]?d=d[e]:d=d[e]={}}\nfunction ca(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";i... client.js:51:12 [master] pid:1844 Get result from websocket: {"error":{"code":-32601,"message":"'Runtime' domain was not found","data":[{"code":-32601,"message":"'Runtime' domain was not found"}]},"id":1} client.js:115:14 [master] pid:1844 Send command to websocket: {"method":"Runtime.evaluate","params":{"expression":"(function(){return function(){var l=this;function aa(a){return void 0!==a}function ba(a,b){var c=a.split("."),d=l;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&aa(b)?d[e]=b:d[e]?d=d[e]:d=d[e]={}}\nfunction ca(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";i... client.js:51:12 [master] pid:1844 Get result from websocket: {"error":{"code":-32601,"message":"'Runtime' domain was not found","data":[{"code":-32601,"message":"'Runtime' domain was not found"}]},"id":2} client.js:115:14 [master] pid:1844 Send command to websocket: {"method":"Runtime.evaluate","params":{"expression":"(function(){return function(){var l=this;function aa(a){return void 0!==a}function ba(a,b){var c=a.split("."),d=l;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)!c.length&&aa(b)?d[e]=b:d[e]?d=d[e]:d=d[e]={}}\nfunction ca(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";i... client.js:51:12 [master] pid:1844 Get result from websocket: {"error":{"code":-32601,"message":"'Runtime' domain was not found","data":[{"code":-32601,"message":"'Runtime' domain was not found"}]},"id":3}

crazymanpj avatar Dec 11 '20 06:12 crazymanpj

This is the translated issue:


After switching WebView, click or enter the control failed

After switching WebVIEW, click on the control to clicks or enter the failed, the log of the Server report is as follows:

Proxy.js: 85: 20 [Master] PID: 1844 Got Response with status 200: {"status": 0, "value": "", "sessionID": "} Session.js: 120: 14 [Master] PID: 1844 Send http Respone to Client [2020-12-11 14:39:19]: {"status": 0, "value": "", "sessionID" "} ResponseHandler.js: 11: 12 [Master] PID: 1844 Recieve Http Request from Clom Clom Clom Clom Clom Clom Clom Clom Clom Clom Clom Clom Clom Clom Clom Clom Client [2020-12-11 14:39:29]: Method: Get URL: / WD / HUB / Session / 9DB3BE7A-9E40-432B -917D-E02CC3897D5D / contexts, jsonbody: {} iOS_WEBKIT_DEBUG_PROXY PATH: / USR / local / bin / iOS_webkit_debug_proxy Remote-Debugger.js: 99: 14 [Master] PID: 1844 Fetching Devices from http: // localhost: 9221 / json Remote-Debugger.js: 118: 14 [Master] PID: 1844 Configure Port: 9222 for DeviceID: 64A4F7C97D9433CBE1557515B1C82874E80374F0 Remote-Debugger.js: 134: 14 [Master] PID: 1844 Getting Pages from URL: http: // localhost: 9222 / json ResponseHandler.js: 49: 14 [Master] PID: 1844 Send http respone to client [2020-12-11 14:39:31]: {"sessionid": "9DB3BE7A-9E40-432B-917D-E02CC3897D5D", "status": 0, "value": "[" native_app \ ", " WebView_1 \ "]"} ResponseHandler.js: 11: 12 [Master] PID: 1844 Recieve Http Request from Clom Clom Clom Clom Clom Clom Clom [2020-12-11 14:39:31]: Method: POST URL: / WD / HUB / Session / 9DB3BE7A-9E40-432B -917D-E02CC3897D5D / context, jsonbody: {"name": "WebView_1"} Remote-Debugger.js: 134: 14 [Master] PID: 1844 Getting Pages from URL: http: // localhost: 9222 / json Client.js: 31: 16 [Master] PID: 1844 Remote Debugger Connected to WebSocket URL: WS: // localhost: 9222 / devtools / page / 1 ResponseHandler.js: 49: 14 [Master] PID: 1844 Send http respone to client [2020-12-11 14:39:31]: {"sessionid": "9DB3BE7A-9E40-432B-917D-E02CC3897D5D", "Status": 0, "Value": null} Client.js: 51: 12 [Master] PID: 1844 Get Result from WebSocket: {"Method": "Target.targetCreated", "params": {"targetInfo": {"targetid": "Page-6" , "Type": "Page"}}} ResponseHandler.js: 11: 12 [master] PID: 1844 Recieve Http Request from Clom Clom Clom Clom Clom Clom Clom Clom Clom [2020-12-11 14:39:31]: Method: Get URL: / WD / HUB / Session / 9DB3BE7A-9E40-432B -917D-E02CC3897D5D / context, jsonbody: {} Remote-Debugger.js: 134: 14 [Master] PID: 1844 Getting Pages from URL: http: // localhost: 9222 / json ResponseHandler.js: 49: 14 [Master] PID: 1844 Send http respone to client [2020-12-11 14:39:31]: {"sessionid": "9DB3BE7A-9E40-432B-917D-E02CC3897D5D", "Status": 0, "Value": "" WebView_1 \ "} ResponseHandler.js: 11: 12 [Master] PID: 1844 Recieve Http Request from Clom Clom Clom Clom Clom Clom Clom [2020-12-11 14:39:31]: Method: POST URL: / WD / HUB / Session / 9DB3BE7A-9E40-432B -917D-E02CC3897D5D / ELEMENT, JSONBODY: {"Using": "id", "value": "ideiff"} Remote-Debugger.js: 134: 14 [Master] PID: 1844 Getting Pages from URL: http: // localhost: 9222 / json Client.js: 115: 14 [Master] PID: 1844 Send Command to Websocket: {"Method": "runtime.evaluate", "params": {"Expression": "(Function () {Return Function () {var l = this; function aa (a) {return void 0! == a} function ba (a, b) {var c = a.split (\ ". ), D = L; C [0] IN D ||! d.execscript || d.execscript (\ "Var " + C [0]); for (var E; C.LENGTH && (E = C.shift ());)! C.LENGTH && AA b)? d [e] = B: D [E]? D = D [E]: D = D [E] = {}} \ nfunction CA (a) {var b = typeof a; if (\ "Object \ "== b) if (a) {if (a instanceof array) return " array \ "; i ... Client.js: 51: 12 [Master] PID: 1844 Get Result from WebSocket: {"Error": {"Code": - 32601, "Message": "'Runtime' Domain Was Not Found", "DATA" : [{"CODE": - 32601, "Message": "'Runtime' Domain Was Not Found"}]}, "ID": 1} Client.js: 115: 14 [Master] PID: 1844 Send Command to Websocket: {"Method": "runtime.evaluate", "params": {"Expression": "(Function () {Return Function () {var l = this; function aa (a) {return void 0! == a} function ba (a, b) {var c = a.split (\ ". ), D = L; C [0] IN D ||! d.execscript || d.execscript (\ "Var " + C [0]); for (var E; C.LENGTH && (E = C.shift ());)! C.LENGTH && AA b)? d [e] = B: D [E]? D = D [E]: D = D [E] = {}} \ nfunction CA (a) {var b = typeof a; if (\ "Object \ "== b) if (a) {if (a instanceof array) return " array \ "; i ... Client.js: 51: 12 [Master] PID: 1844 Get Result from WebSocket: {"Error": {"Code": - 32601, "Message": "'Runtime' Domain Was Not Found", "DATA" : [{"Code": - 32601, "Message": "'Runtime' Domain WAS NOT FOUND"}]}, "ID": 2} Client.js: 115: 14 [Master] PID: 1844 Send Command to Websocket: {"Method": "runtime.evaluate", "params": {"Expression": "(Function () {Return Function () {var l = this; function aa (a) {return void 0! == a} function ba (a, b) {var c = a.split (\ ". ), D = L; C [0] IN D ||! d.execscript || d.execscript (\ "Var " + C [0]); for (var E; C.LENGTH && (E = C.shift ());)! C.LENGTH && AA b)? d [e] = B: D [E]? D = D [E]: D = D [E] = {}} \ nfunction CA (a) {var b = typeof a; if (\ "Object \ "== b) if (a) {if (a instanceof array) return " array \ "; i ... Client.js: 51: 12 [Master] PID: 1844 Get Result from WebSocket: {"Error": {"Code": - 32601, "Message": "'Runtime' Domain Was Not Found", "DATA" : [{"Code": - 32601, "Message": "'Runtime' Domain WAS NOT FOUND"}]}, "ID": 3}

macaca-bot avatar Dec 11 '20 06:12 macaca-bot