测试积点老人 发表于 2018-3-13 16:21:50

Day3-2测试积点任务

问题:用selendroid模式测试webview是不是也需要翻墙呢?为什么我执行有时候是通过的,有时候print
driver.contexts就会报错。并且无法识别webview一直是native?


报错信息如下:


<font face="微软雅黑" size="3">info: --> GET /wd/hub/session/4dbdb598-2d69-2057-354b-e076f9137849/contexts {}
info: Getting a list of available webviews
info: executing: "D:\software\android-sdk-windows\platform-tools\adb.exe
" -s 0b2fd4c5 shell "cat /proc/net/unix"
info: Available contexts: undefined
info: []
info: Getting a list of available webviews
info: executing: "D:\software\android-sdk-windows\platform-tools\adb.exe
" -s 0b2fd4c5 shell "cat /proc/net/unix"
info: Available contexts: NATIVE_APP
info: []
info: Making http request with opts: {"url":"http://localhost:8080/wd/hu
b/session/4actu505-2d57-2057-1f8b-e054f9138459/title","method":"GET"}
info: Responding to client with error: {"status":13,"value":{"message":"
An unknown server-side error occurred while processing the command.","origValue"
:"Did not successfully proxy server command"},"sessionId":"4acd6701-2d77-6057-ff
9b-e076f9137849"}
info: <-- GET /wd/hub/session/4actu505-2d57-2057-1f8b-e054f9138459/title 500 98.
892 ms - 210</font>



梦想家 发表于 2018-3-14 10:25:30

get context 没有传到给 selendroid

qqq911 发表于 2018-3-14 16:11:53

可以加点打印语句,看下数据的传递是否正常
页: [1]
查看完整版本: Day3-2测试积点任务