appium 测试微信公众号 切换webview

appium测试微信公众号的时候 切换webview报找不到context
driver.context("WEBVIEW_com.tencent.mm:tools");
io.appium.java_client.NoSuchContextException: No such context found. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 276 milliseconds

 

需要打开x5debug模式

微信的设置

用微信打开debugx5.qq.com, 这是个微信的x5内核调试页面. 你可以在任何聊天窗口内输入这个网址. 并打开它. 
勾选”是否打开TBS内核Inspector调试功能”

原博

http://blog.csdn.net/windanchaos/article/details/70210341

 

posted @ 2017-05-17 10:55  fgzhangjack  阅读(2501)  评论(0编辑  收藏  举报