• @xiaohengdada 你好,元素点击方法用的事 send_key,元素定位用的是 xpath

  • @18070592371 @xiaohengdada 我遇到的也是这个问题,华为 V10 就不行,换到了 VIVO X5 就可以了,现在也在纠结这个问题,在想是不 是 chromedriver 的坑,或者安卓系统不同的坑,你那解决了吗?

  • @pepper @xiaohengdada 有解决的吗?我这也是这样,头好大

  • @xxq 你的 chrome not reachable 问题解决没?求助

  • python+Appium v1.8.0 mac 10.13.5 切换 webview 也是报错,用了上文提到的'chromeOptions':{'androidProcess':'com.tencent.mm:appbrand0'}也还是不行,还有其他解决办法吗?下面是 log 信息

    Chromedriver)
    [Chromedriver] at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-support/lib/logging.js:78:13)
    [Chromedriver] at Chromedriver.callee$2$0$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/lib/chromedriver.js:357:13)
    [Chromedriver] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
    [Chromedriver] at GeneratorFunctionPrototype.invoke as _invoke
    [Chromedriver] at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
    [Chromedriver] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
    [Chromedriver] at
    [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8001/wd/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.tencent.mm","androidUseRunningApp":true,"androidProcess":"com.tencent.mm:appbrand0","androidDeviceSerial":"A7QDU17B14000798"}}}
    [JSONWP Proxy] Got response with status 200: {"sessionId":"ec3d67c8e917363c4b99a6c82c5f4dd2","status":100,"value":{"message":"chrome not reachable\n (Driver info: chromedriver=2.28.455517 (2c6d2707d8ea850c862f04ac066724273981e88f),platform=Mac OS X 10.13.5 x86_64)"}}
    [Chromedriver] Error: Failed to start Chromedriver session: An error occurred (Original error: chrome not reachable
    Chromedriver)
    [Chromedriver] at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-support/lib/logging.js:78:13)
    [Chromedriver] at Chromedriver.callee$2$0$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/lib/chromedriver.js:357:13)
    [Chromedriver] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
    [Chromedriver] at GeneratorFunctionPrototype.invoke as _invoke
    [Chromedriver] at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
    [Chromedriver] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
    [Chromedriver] at
    [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8001/wd/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.tencent.mm","androidUseRunningApp":true,"androidProcess":"com.tencent.mm:appbrand0","androidDeviceSerial":"A7QDU17B14000798"}}}
    [JSONWP Proxy] Got response with status 200: {"sessionId":"d82cf6ef756edbbbbf0c5fb67d889beb","status":100,"value":{"message":"chrome not reachable\n (Driver info: chromedriver=2.28.455517 (2c6d2707d8ea850c862f04ac066724273981e88f),platform=Mac OS X 10.13.5 x86_64)"}}
    [Chromedriver] Error: Failed to start Chromedriver session: An error occurred (Original error: chrome not reachable
    Chromedriver)
    [Chromedriver] at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-support/lib/logging.js:78:13)
    [Chromedriver] at Chromedriver.callee$2$0$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/lib/chromedriver.js:357:13)
    [Chromedriver] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
    [Chromedriver] at GeneratorFunctionPrototype.invoke as _invoke
    [Chromedriver] at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
    [Chromedriver] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
    [Chromedriver] at
    [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8001/wd/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.tencent.mm","androidUseRunningApp":true,"androidProcess":"com.tencent.mm:appbrand0","androidDeviceSerial":"A7QDU17B14000798"}}}
    [JSONWP Proxy] Got response with status 200: {"sessionId":"ad6ca12b435ad7f35b50fc48cfab0920","status":100,"value":{"message":"chrome not reachable\n (Driver info: chromedriver=2.28.455517 (2c6d2707d8ea850c862f04ac066724273981e88f),platform=Mac OS X 10.13.5 x86_64)"}}
    [Chromedriver] Error: Failed to start Chromedriver session: An error occurred (Original error: chrome not reachable
    Chromedriver)
    [Chromedriver] at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-support/lib/logging.js:78:13)
    [Chromedriver] at Chromedriver.callee$2$0$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/lib/chromedriver.js:357:13)
    [Chromedriver] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
    [Chromedriver] at GeneratorFunctionPrototype.invoke as _invoke
    [Chromedriver] at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
    [Chromedriver] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
    [Chromedriver] at
    [Chromedriver] Chromedriver exited unexpectedly with code null, signal SIGTERM
    [Chromedriver] Changed state to 'stopped'
    [Chromedriver] Error: Failed to start Chromedriver session: An error occurred (Original error: chrome not reachable
    Chromedriver)
    [Chromedriver] at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-support/lib/logging.js:78:13)
    [Chromedriver] at Chromedriver.callee$2$0$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/lib/chromedriver.js:357:13)
    [Chromedriver] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
    [Chromedriver] at GeneratorFunctionPrototype.invoke as _invoke
    [Chromedriver] at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
    [Chromedriver] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
    [Chromedriver] at
    [W3C] Encountered internal error running command: Error: Failed to start Chromedriver session: An error occurred (Original error: chrome not reachable
    W3C)
    [W3C] at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-support/lib/logging.js:78:13)
    [W3C] at Chromedriver.callee$2$0$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/lib/chromedriver.js:357:13)
    [W3C] at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/node_modules/babel-runtime/regenerator/runtime.js:67:40)
    [W3C] at GeneratorFunctionPrototype.invoke as _invoke
    [W3C] at GeneratorFunctionPrototype.prototype.(anonymous function) as throw
    [W3C] at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium-chromedriver/node_modules/babel-runtime/regenerator/runtime.js:136:37)
    [W3C] at
    [HTTP] <-- POST /wd/hub/session/42275fbe-8dad-4934-9a3d-967e1326c93b/context 500 244019 ms - 1716
    [HTTP]
    [HTTP] --> DELETE /wd/hub/session/42275fbe-8dad-4934-9a3d-967e1326c93b

  • xctest-client.js:181:14 [master] pid:3690 xctest client exit with code: 65, signal: null
    xctest-client.js:209:14 [master] pid:3690 iproxy exit with code: null, signal: SIGKILL
    xctest-client.js:145:16 [master] pid:3690 deviceconsole exit with code: null, signal: SIGKILL
    xctest-client.js:257:14 [master] pid:3690 Fail to start xctest: undefined
    app-inspector:66:44 [master] pid:3690 undefined
    (node:3690) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: >> app-inspector:66:44 [master] pid:3690 undefined
    我的也是这个报错,能帮忙看下怎么解决吗?真机跑起来闪退

  • 嗯,看到了,现在在配置 app inspector 真机运行跑不起来报和 66 楼一样的错误,你那遇到过这种问题吗?

  • 我的也是,真机启动过后闪退,然后就这样了,你的解决了吗?

  • 我的跟你的一样,请问你解决了吗?

  • app inspector 在浏览器里可以录制脚本吗?appium 图形界面是不是可以直接启动 inspector 录制,命令行可以吗?感谢😀