appium遇到一些问题
1.org.openqa.selenium.SessionNotCreatedException: null (WARNING: The server did not provide any stacktrace information)
请勾选它Override Existing Session
2.org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Did not get session redirect from Chromedriver) (WARNING: The server did not provide any stacktrace information)
重启下appium
3.unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"17203.1","isDefault":true},"id":1,"name":"","origin":"://"}
检查chromedriver版本可能与chrome不兼容
chromedriver版本 | 支持的Chrome版本 |
---|---|
v2.28 | v55-57 |
v2.27 | v54-56 |
v2.26 | v53-55 |
v2.25 | v53-55 |
v2.24 | v52-54 |
v2.23 | v51-53 |
v2.22 | v49-52 |
v2.21 | v46-50 |
v2.20 | v43-48 |
v2.19 | v43-47 |
v2.18 | v43-46 |
v2.17 | v42-43 |
v2.13 | v42-45 |
v2.15 | v40-43 |
v2.14 | v39-42 |
v2.13 | v38-41 |
v2.12 | v36-40 |
v2.11 | v36-40 |
v2.10 | v33-36 |
v2.9 | v31-34 |
v2.8 | v30-33 |
v2.7 | v30-33 |
v2.6 | v29-32 |
v2.5 | v29-32 |
v2.4 | v29-32 |
附:
所有chromedriver均可在下面链接中下载到:
http://chromedriver.storage.googleapis.com/index.html
原博:
http://blog.csdn.net/huilan_same/article/details/51896672
修改chromedriver路径:
C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-chromedriver\chromedriver\win\chromedriver.exe
直接替换掉旧的driver就ok。