selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while
运行appium脚本(切换context)时报错selenium.common.exceptions.WebDriverException…
PyCharm控制台报错信息如下:
appium日志信息如下:
原因
appium server中的chromedriver和andriod内置的webview版本不匹配。
解决措施
下载对应的chromedriver,并配置到appium中
- andriod内置的webview版本
方法一:手机上设置中查看:
设置–>应用程序管理–>全部–>Android System WebView
方法二:adb指令查看(前提,已安装android sdk环境)
cmd控制台执行命令:adb shell am start -a android.intent.action.VIEW -d https://liulanmi.com/labs/core.html - 下载对应的chromedriver,配置到appium中(Appium Advanced–>Chromedriver Binary Path(输入chromedriver路径))
1)chrome和chromedriver的对应关系
2)驱动的下载网址:http://chromedriver.storage.googleapis.com/index.html
3)配置chromedriver到appium