安卓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/