Appium 微信小程序测试:在微信升级到 7.0.0 版本以后,不能看到 html source

jackyd · 2019年01月04日 · 最后由 jackyd 回复于 2019年01月16日 · 534 次阅读

在2019年初,微信自动升级到最新版本7.0.0以后,华为Android 8.0手机。
从搜一搜入口进入微信小程序,打开chrome://inspect/#devices以后,看不到小程序source的html了,
以前是可以的,有大神知道这个问题怎么解决吗?谢谢!

共收到 3 条回复 时间 点赞

试试,卸载重装,然后装x5内核

8.0的bug,需要打补丁。建议还是换个低版本测试吧

现在又碰到一个新问题,chrome://inspect/#devices得到小程序的chrome版本是:com.tencent.mm (67.0.3396.87),然后用了匹配的v2.41版本的chromedriver,跑appium log显示得到的chrome版本是:[Chromedriver][39m Webview version: 'Chrome/68.0.3440.91',然后切换context报错如下:

[debug] [35m[MJSONWP][39m Matched JSONWP error code 13 to UnknownError
[error] [35m[Chromedriver][39m Error: Failed to start Chromedriver session: An unknown server-side error occurred while processing the command. Original error: unknown error: unable to discover open pages
[error] [35m[Chromedriver][39m (Driver info: chromedriver=2.41.578706 (5f725d1b4f0a4acbf5259df887244095596231db),platform=Mac OS X 10.13.6 x86_64)
[error] [35m[Chromedriver][39m at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-support/lib/logging.js:78:13)
[error] [35m[Chromedriver][39m at /Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/lib/chromedriver.js:478:13[debug] [35m[Chromedriver][39m Webview version: 'Chrome/68.0.3440.91'[debug] [35m[JSONWP Proxy][39m Got response with status 200: {"sessionId":"4fda399fbf44d625f79b2dbb46f04819","status":13,"value":{"message":"unknown error: unable to discover open pages\n (Driver info: chromedriver=2.41.578706 (5f725d1b4f0a4acbf5259df887244095596231db),platform=Mac OS X 10.13.6 x86_64)"}}
[warn] [35m[JSONWP Proxy][39m Got an unexpected response: {"sessionId":"4fda399fbf44d625f79b2dbb46f04819","status":13,"value":{"message":"unknown error: unable to discover open pages\n (Driver info: chromedriver=2.41.578706 (5f725d1b4f0a4acbf5259df887244095596231db),platform=Mac OS X 10.13.6 x86_64)"}}
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册