还未发布过话题
  • 微信 webview 的自动化技术 at 2017年12月14日

    nope。。。。。降级到 220.成功一次以后又不行了。。太淡腾了☹️

    Got response with status 200: {"sessionId":"8ebf284e00bdf84b75a93169cdc80615","status":100,"value":{"message":"chrome not reachable\n (Driver info: chromedriver=2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Mac OS X 10.12.4 x86_64)"}}
    [Chromedriver] Chromedriver exited unexpectedly with code null, signal SIGTERM
    [debug] [Chromedriver] Changed state to 'stopped'
    [Chromedriver] Error: chrome not reachable
    (Driver info: chromedriver=2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Mac OS X 10.12.4 x86_64)
    at Chromedriver.callee$2$0$ (../../lib/chromedriver.js:182:15)
    at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke as _invoke
    at GeneratorFunctionPrototype.prototype.(anonymous function) as next
    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:136:37)
    Error: chrome not reachable
    (Driver info: chromedriver=2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Mac OS X 10.12.4 x86_64)
    at Chromedriver.callee$2$0$ (../../lib/chromedriver.js:182:15)
    at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke as _invoke
    at GeneratorFunctionPrototype.prototype.(anonymous function) as next
    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:136:37)
    [MJSONWP] Encountered internal error running command: Error: chrome not reachable
    (Driver info: chromedriver=2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Mac OS X 10.12.4 x86_64)
    at Chromedriver.callee$2$0$ (../../lib/chromedriver.js:182:15)
    at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke as _invoke
    at GeneratorFunctionPrototype.prototype.(anonymous function) as next
    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:136:37)

  • 微信 webview 的自动化技术 at 2017年12月14日

    不好意思没有仔细看回复。。chromedriver 降级回 220 搞定。。。(第一次替换文件换错位置了。。应该替换这里的 /usr/local/lib/node_modules/appium/node_modules/_appium-chromedriver@2.11.3@appium-chromedriver/chromedriver/mac/

  • 微信 webview 的自动化技术 at 2017年12月14日

    driver.context("WEBVIEW_com.tencent.mm:tools");
    执行这句话的时候报错了,以下是 appium 的相关日志。po 或者各位老师能否帮忙看下?。。
    A port was not given, using random port: 8000
    然而其实是可以获取到 com.tencent.mm:tools 的 context 的,我的 appium 版本是 1.6.5

    [debug] [AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_com.tencent.mm:support","WEBVIEW_com.tencent.mm:appbrand1","WEBVIEW_com.tencent.mm:tools","WEBVIEW_com.tencent.mm:appbrand0"]
    [debug] [AndroidDriver] Connecting to chrome-backed webview context 'WEBVIEW_com.tencent.mm:tools'
    [debug] [AndroidDriver] A port was not given, using random port: 8000
    [debug] [Chromedriver] Changed state to 'starting'
    [Chromedriver] Set chromedriver binary as: /usr/local/lib/node_modules/appium/node_modules/_appium-chromedriver@2.11.3@appium-chromedriver/chromedriver/mac/chromedriver
    [Chromedriver] Killing any old chromedrivers, running: pkill -15 -f "/usr/local/lib/node_modules/appium/node_modules/_appium-chromedriver@2.11.3@appium-chromedriver/chromedriver/mac/chromedriver.*--port=8000"
    [Chromedriver] No old chromedrivers seemed to exist
    [Chromedriver] Spawning chromedriver with: /usr/local/lib/node_modules/appium/node_modules/_appium-chromedriver@2.11.3@appium-chromedriver/chromedriver/mac/chromedriver --url-base=wd/hub --port=8000 --adb-port=5037
    [Chromedriver] [STDOUT] Starting ChromeDriver 2.28.455517 (2c6d2707d8ea850c862f04ac066724273981e88f) on port 8000
    Only local connections are allowed.
    [debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/hub/status] with no body
    [debug] [JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"\",\"status\":0,\"value\":{\"build\":{\"version\":\"alpha\"},\"os\":{\"arch\":\"x86_64\",\"name\":\"Mac OS X\",\"version\":\"10.12.4\"}}}"
    [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.tencent.mm","androidUseRunningApp":true,"args":[],"extensions":[],"androidProcess":"com.tencent.mm:tools","androidDeviceSerial":"GAY5H66999999999"}}}
    [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"5c952df12f67f053d65d69dd25346143","status":33,"value":{"message":"session not created exception: please close '' and try again\n (Driver info: chromedriver=2.28.455517 (2c6d2707d8ea850c862f04ac066724273981e88f),platform=Mac OS X 10.12.4 x86_64)"}}
    [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.tencent.mm","androidUseRunningApp":true,"args":[],"extensions":[],"androidProcess":"com.tencent.mm:tools","androidDeviceSerial":"GAY5H66999999999"}}}
    [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"a06ead138d2d9d9ddc24e5f86c6f1477","status":33,"value":{"message":"session not created exception: please close '' and try again\n (Driver info: chromedriver=2.28.455517 (2c6d2707d8ea850c862f04ac066724273981e88f),platform=Mac OS X 10.12.4 x86_64)"}}
    [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.tencent.mm","androidUseRunningApp":true,"args":[],"extensions":[],"androidProcess":"com.tencent.mm:tools","androidDeviceSerial":"GAY5H66999999999"}}}
    [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"977bc0c18832322475571c8df2cc1f68","status":33,"value":{"message":"session not created exception: please close '' and try again\n (Driver info: chromedriver=2.28.455517 (2c6d2707d8ea850c862f04ac066724273981e88f),platform=Mac OS X 10.12.4 x86_64)"}}
    [debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {"desiredCapabilities":{"chromeOptions":{"androidPackage":"com.tencent.mm","androidUseRunningApp":true,"args":[],"extensions":[],"androidProcess":"com.tencent.mm:tools","androidDeviceSerial":"GAY5H66999999999"}}}
    [debug] [JSONWP Proxy] Got response with status 200: {"sessionId":"f2b0918c492db7af976eb5f17f9a736c","status":33,"value":{"message":"session not created exception: please close '' and try again\n (Driver info: chromedriver=2.28.455517 (2c6d2707d8ea850c862f04ac066724273981e88f),platform=Mac OS X 10.12.4 x86_64)"}}
    [Chromedriver] Chromedriver exited unexpectedly with code null, signal SIGTERM
    [debug] [Chromedriver] Changed state to 'stopped'
    [Chromedriver] Error: session not created exception: please close '' and try again
    (Driver info: chromedriver=2.28.455517 (2c6d2707d8ea850c862f04ac066724273981e88f),platform=Mac OS X 10.12.4 x86_64)
    at Chromedriver.callee$2$0$ (../../lib/chromedriver.js:182:15)
    at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke as _invoke
    at GeneratorFunctionPrototype.prototype.(anonymous function) as next
    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:136:37)
    Error: session not created exception: please close '' and try again
    (Driver info: chromedriver=2.28.455517 (2c6d2707d8ea850c862f04ac066724273981e88f),platform=Mac OS X 10.12.4 x86_64)
    at Chromedriver.callee$2$0$ (../../lib/chromedriver.js:182:15)
    at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke as _invoke
    at GeneratorFunctionPrototype.prototype.(anonymous function) as next
    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:136:37)
    [MJSONWP] Encountered internal error running command: Error: session not created exception: please close '' and try again
    (Driver info: chromedriver=2.28.455517 (2c6d2707d8ea850c862f04ac066724273981e88f),platform=Mac OS X 10.12.4 x86_64)
    at Chromedriver.callee$2$0$ (../../lib/chromedriver.js:182:15)
    at tryCatch (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:67:40)
    at GeneratorFunctionPrototype.invoke as _invoke
    at GeneratorFunctionPrototype.prototype.(anonymous function) as next
    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/_babel-runtime@5.8.24@babel-runtime/regenerator/runtime.js:136:37)