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

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

安卓 webview 能够当作是 手机上的 chrome 浏览器精简版。git

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

手机里webview也有一个版本web

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

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 78session

 

 

手机上webview版本app

 

 

 

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

而后设置chromedriver路径,从新启动就能够了spa

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

相关文章
相关标签/搜索