#13 楼 @Lihuazhang 这个具体有多少人在用我还真不知道,我在 QQ 群里看很多人在搭建过程中遇到了很多问题,官方应该也在不断完善吧。因为我们现在产品对兼容性要求不高,所以一直耽搁了,后续会尝试着去搭建一下!
#3 楼 @seveniruby 阿里现在开源了一个浏览器兼容测试的服务,可以自己部署在自己家服务器上的,https://github.com/alibaba/f2etest
#14 楼 @TheRoadNotTaken 嗯 好的 谢谢哈 我和你的操作是一样的
#12 楼 @TheRoadNotTaken 因为我是在测试微信号中做测试,没法配置微信的菜单,只能通过对话框进入 H5 页面。 切换 context 应该就是在跳转到 H5 页面之后转吧,我的有时候会出现 WEBVIEW_com.tencent.mm:tools,但是也会报错
info: [debug] Getting a list of available webviews
info: [debug] executing cmd: E:\appnium\android\sdk\android-sdk-windows\platform-tools\adb.exe -s 3332B087C13200EC shell "cat /proc/net/unix"
info: [debug] Available contexts:
info: [debug] []
info: [debug] Available contexts: NATIVE_APP
info: [debug] Responding to client with success: {"status":0,"value":["NATIVE_APP"],"sessionId":"3442571c-56e5-47e5-86e4-e2d4c12a5718"}
info: <-- GET /wd/hub/session/3442571c-56e5-47e5-86e4-e2d4c12a5718/contexts 200 198.187 ms - 86 {"status":0,"value":["NATIVE_APP"],"sessionId":"3442571c-56e5-47e5-86e4-e2d4c12a5718"}
info: --> POST /wd/hub/session/3442571c-56e5-47e5-86e4-e2d4c12a5718/context {"sessionId":"3442571c-56e5-47e5-86e4-e2d4c12a5718","name":"WEBVIEW_com.tencent.mm:tools"}
info: [debug] Getting a list of available webviews
info: [debug] executing cmd: E:\appnium\android\sdk\android-sdk-windows\platform-tools\adb.exe -s 3332B087C13200EC shell "cat /proc/net/unix"
info: [debug] Available contexts: NATIVE_APP
info: [debug] []
info: [debug] Available contexts: NATIVE_APP
info: [debug] Responding to client with error: {"status":35,"value":{"message":"No such context found.","origValue":"Context 'WEBVIEW_com.tencent.mm:tools' does not exist"},"sessionId":"3442571c-56e5-47e5-86e4-e2d4c12a5718"}
info: <-- POST /wd/hub/session/3442571c-56e5-47e5-86e4-e2d4c12a5718/context 500 74.620 ms - 177
info: [debug] Didn't get a new command in 60 secs, shutting down...
info: Shutting down appium session
info: [debug] Pressing the HOME button
info: [debug] executing cmd: E:\appnium\android\sdk\android-sdk-windows\platform-tools\adb.exe -s 3332B087C13200EC shell "input keyevent 3"
info: [debug] Stopping logcat capture
info: [debug] Logcat terminated with code null, signal SIGTERM
info: [debug] [BOOTSTRAP] [debug] Got data from client: {"cmd":"shutdown"}
info: [debug] [BOOTSTRAP] [debug] Got command of type SHUTDOWN
info: [debug] [BOOTSTRAP] [debug] Returning result: {"value":"OK, shutting down","status":0}
info: [debug] Sent shutdown command, waiting for UiAutomator to stop...
info: [debug] [BOOTSTRAP] [debug] Closed client connection
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
我的 log 是这样的,能不能帮忙看一下,谢谢
#9 楼 @TheRoadNotTaken 您好 我这里始终切换不到 webview 试了好多方法都不行 log 里显示可用的 context 只有 NATIVE_APP,您遇到过这种情况吗
#38 楼 @hukui51770 您好 想问一下 您是怎么获取到 context 的 我也有打印 但是没有这个呢