Selenium webdriver chrome not reachable 问题?请高手指教

zhizunbao84 · 2020年01月03日 · 最后由 rhyme 回复于 2020年01月03日 · 2854 次阅读

我用 python+selenium 测试一个手机 app 的 webview 页面,但是一直提示 chrome not reachable

然后我发现我手机里浏览器是一个版本,手机里的还有一个 android system webview,又是另一个版本。用 chrome://inspect 发现测试 app
中的 webview 版本又是另外一个。

我应该下载对应哪个版本 webview 的 chromedriver 呢?

按照一楼的提示,我得测试如向下:

----------ChromeDriver v2.29 (2017-04-04)----------
Supports Chrome v56-58
Resolved issue 1521: Assignment to Object.prototype.$family causes a crash [['Pri-1']]
Resolved issue 1482: Chromedriver cannot handle the alert generated by onbeforeunload event [['OS-All', 'Pri-2']]
Resolved issue 1315: |switch_to.window| does not visually switch tabs [['OS-All', 'Pri-3']]

----------ChromeDriver v2.28 (2017-03-09)----------
Supports Chrome v55-57
Resolved issue 1625: Error: cannot get automation extension on Chrome57+ [['OS-All', 'Pri-1', 'merge-merged-2987']]
Resolved issue 1695: Chrome crashes on Linux32 bot [['OS-Linux', 'Pri-1']]
Resolved issue 1467: A hang occurs when an alert dialog is displayed on Chrome 52+ [['OS-All', 'Pri-2']]
Resolved issue 1688: Exported Netlog with --log-net-log is truncated [['OS-Linux', 'OS-Mac', 'Pri-2']]
Resolved issue 1388: find Elements is failing [['Pri-2']]

然后我把 chromedriver 2.28 和 2.29 版本都试了下,还是不行,仍然提示 chrome not reachable!

共收到 1 条回复 时间 点赞

chrome://inspect 发现测试 app 这个的版本

需要 登录 後方可回應,如果你還沒有帳號按這裡 注册