Appium 微信小程序成功切换 context 后,点击元素,报错 chrome not reachable

刘小仙 · 2017年03月12日 · 最后由 Dorom 回复于 2019年09月28日 · 1960 次阅读

代码:

报错:
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: chrome not reachable
(Driver info: chromedriver=2.25.426935 (820a95b0b81d33e42712f9198c215f703412e1a1),platform=Mac OS X 10.11.4 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 243.36 seconds
Build info: version: '2.52.0', revision: '4c2593cfc3689a7fcd7be52549167e5ccc93ad28', time: '2016-02-11 11:22:43'
System info: host: 'liufendeMacBook-Pro.local', ip: '172.18.244.180', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.4', java.version: '1.7.0_76'
Session ID: 43da94f9-faac-4d09-b323-110a8406bf6c
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{platform=ANDROID, app=, javascriptEnabled=true, appActivity=.ui.LauncherUI, browserName=, networkConnectionEnabled=true, desired={app=, platformVersion=5.1, platform=ANDROID, fullReset=false, deviceName=85GABMGRCRQV, platformName=Android, appActivity=.ui.LauncherUI, browserName=, chromeOptions={args=[], androidProcess=com.tencent.mm:appbrand1, extensions=[]}, fastReset=false, appPackage=com.tencent.mm, noReset=true}, locationContextEnabled=false, deviceUDID=85GABMGRCRQV, chromeOptions={args=[], androidProcess=com.tencent.mm:appbrand1, extensions=[]}, fastReset=false, appPackage=com.tencent.mm, noReset=true, platformVersion=5.1, databaseEnabled=false, fullReset=false, deviceName=85GABMGRCRQV, platformName=Android, webStorageEnabled=false, warnings={}, takesScreenshot=true}]

appium 日志:
[MJSONWP] Encountered internal error running command: Error: chrome not reachable
(Driver info: chromedriver=2.25.426935 (820a95b0b81d33e42712f9198c215f703412e1a1),platform=Mac OS X 10.11.4 x86_64)
at Chromedriver.callee$2$0$ (../../lib/chromedriver.js:177:15)
at tryCatch (/Users/liufen/.nvm/versions/node/v4.4.7/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke as _invoke
at GeneratorFunctionPrototype.prototype.(anonymous function) as next
at GeneratorFunctionPrototype.invoke (/Users/liufen/.nvm/versions/node/v4.4.7/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at run (/Users/liufen/.nvm/versions/node/v4.4.7/lib/node_modules/appium/node_modules/core-js/library/modules/es6.promise.js:108:47)
at /Users/liufen/.nvm/versions/node/v4.4.7/lib/node_modules/appium/node_modules/core-js/library/modules/es6.promise.js:119:28
at flush (/Users/liufen/.nvm/versions/node/v4.4.7/lib/node_modules/appium/node_modules/core-js/library/modules/$.microtask.js:19:5)
at nextTickCallbackWith0Args (node.js:420:9)
at process._tickCallback (node.js:349:13)
[HTTP] <-- POST /wd/hub/session/43da94f9-faac-4d09-b323-110a8406bf6c/context 500 243364 ms - 310

微信小程序切换 context 后,可以获取 pagesource,但是点击元素报错,提示 chrome not reachable。求大神指教~

微信 webview 版本:53
appium 版本:1.6.3
chromedriver 版本:2.25

共收到 3 条回复 时间 点赞

我也遇到这个问题了,不知道你解决了没

你好,我也遇到这个问题了,请问你们解决没有

也遇到了,不知道怎么解决

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册