Appium 使用 selendroid 模式测试 webview 问题。

johnfad · 2015年05月20日 · 最后由 陈恒捷 回复于 2015年05月25日 · 1103 次阅读

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

报错信息如下:

info: --> GET /wd/hub/session/4dbdb598-2d69-2057-354b-e076f9137849/contexts {}
info: [debug] Getting a list of available webviews
info: [debug] executing: "D:\software\android-sdk-windows\platform-tools\adb.exe
" -s 0b2fd4c5 shell "cat /proc/net/unix"
info: [debug] Available contexts: undefined
info: [debug] []
info: [debug] Getting a list of available webviews
info: [debug] executing: "D:\software\android-sdk-windows\platform-tools\adb.exe
" -s 0b2fd4c5 shell "cat /proc/net/unix"
info: [debug] Available contexts: NATIVE_APP
info: [debug] []
info: [debug] Making http request with opts: {"url":"http://localhost:8080/wd/hu
b/session/4actu505-2d57-2057-1f8b-e054f9138459/title","method":"GET"}
info: [debug] 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
共收到 1 条回复 时间 点赞

Did not successfully proxy server command
你的 get context 没有传到给 selendroid 。这是 appium server 和 selendroid 之间的通讯的问题,有可能你执行几遍当中有几次 selendroid 服务器挂了。
你去 https://discuss.appium.io/ 查一下?

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册