appium自动化webview时遇到的chromedriver问题

安卓app里面的网页,基本上都是使用手机系统上的webview 去显示的。

安卓 webview 可以看成是 手机上的 chrome 浏览器精简版。

appium desktop 里面内置了 用于 webview 自动化的 chromedriver

手机里webview也有一个版本

这样可能会出现appium desktop里面的 chromedriver 与手机里面的不匹配问题

selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: No Chromedriver found that can automate Chrome '78.0.3904'. See https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md for more details. You could also try to enable automated chromedrivers download server feature

selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: A new session could not be created. Details: session not created: This version of ChromeDriver only supports Chrome version 78

手机上webview版本

 

 这样去下载与webview中版本一致的Chromedriver

然后设置chromedriver路径,重新启动就可以了

 参考:http://www.python3.vip/doc/blog/python/2018081702/

猜你喜欢

转载自www.cnblogs.com/aiyumo/p/11881055.html
今日推荐