appium 常见问题
[appium v1.9.1]问题1:webview 版本号与chromedriver 版本不对应。
WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: No Chromedriver found that can automate Chrome ‘49.0.2623‘. See https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/web/chromedriver.md for more details.
[appium v1.9.1]问题2:webview 版本号与chromedriver 版本不对应。
An unknown server-side error occurred while processing the command. Original error: Failed to start Chromedriver session: A new session could not be created. Details: session not created exception
from unknown error: Runtime.executionContextCreated has invalid ‘context‘: {"auxData":{"frameId":"27814.1","isDefault":true},"id":1,"name":"","origin":"://"}
(Session info: chrome=57.0.2987.132)
(Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Windows NT 10.0 x86_64)
解决方法:
根据上面提供的版本号下载对应的chromedriver版本号,存放在Appium\resources\app\node_modules\appium\node_modules\appium-chromedriver\chromedriver\win
位置下,重启appium工具。
[appium v6.0]问题3:使用driver.context获取到webview时,显示[u“WEBVIEW_undefined”]后,报NoSuchContextException 的异常
解决方法:在Appium\node_modules\appium\lib\devices\android\android-hybrid.js中,在 pkg = line [pkgColumn]; 前面加上 pkgColumn = line.length - 1;
原文地址:https://www.cnblogs.com/JcHome/p/10193229.html