Giter VIP home page Giter VIP logo

Comments (8)

kpanwar avatar kpanwar commented on August 12, 2024

@imurchie - can you please confirm if this is truly a chrome driver issue? I think so, but you are the expert.

from appium-chromedriver.

yaphatak avatar yaphatak commented on August 12, 2024

Looks like its bug on macOS Sierra. It says it fixed upstream. Give a try with latest chromedriver.

from appium-chromedriver.

kpanwar avatar kpanwar commented on August 12, 2024

It does not seem to be fixed in ChromeDriver 2.24 either as per the logs below.

[debug] [AndroidDriver] Found webviews: ["WEBVIEW_com.test.app2"]
[debug] [AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_com.test.app2"]
[debug] [AndroidDriver] Connecting to chrome-backed webview context 'WEBVIEW_com.test.app2'
[debug] [AndroidDriver] A port was not given, using random port: 8000
[debug] [Chromedriver] Changed state to 'starting'
[Chromedriver] Set chromedriver binary as: /Users/someUser/.npm-packages/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver
[Chromedriver] Killing any old chromedrivers, running: pkill -15 -f "/Users/someUser/.npm-packages/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver.*--port=8000"
[Chromedriver] No old chromedrivers seemed to exist
[Chromedriver] Spawning chromedriver with: /Users/someUser/.npm-packages/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver --url-base=wd/hub --port=8000 --adb-port=5037
[Chromedriver] [STDOUT] Starting ChromeDriver 2.24.417412 (ac882d3ce7c0d99292439bf3405780058fcca0a6) on port 8000
Only local connections are allowed.
[JSONWP Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/hub/status] with no body
[JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"\",\"stat...
[JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {"desiredCapabilities":{"ch...
[JSONWP Proxy] Got response with status 200: {"sessionId":"be6dd9aed06ff...
[debug] [Chromedriver] Changed state to 'online'
[MJSONWP] Responding to client with driver.setContext() result: null
[HTTP] <-- POST /wd/hub/session/1dd208ff-c0ba-458d-b8fa-5b35095b7ef6/context 200 60861 ms - 76
[HTTP] --> POST /wd/hub/session/1dd208ff-c0ba-458d-b8fa-5b35095b7ef6/element {"using":"id","value":"lst-ib"}
[MJSONWP] Driver proxy active, passing request on via HTTP proxy
[JSONWP Proxy] Proxying [POST /wd/hub/session/1dd208ff-c0ba-458d-b8fa-5b35095b7ef6/element] to [POST http://127.0.0.1:8000/wd/hub/session/be6dd9aed06fff8e2ad2f49b78ce0cac/element] with body: {"using":"id","value":"lst-...
[JSONWP Proxy] Got response with status 200: {"sessionId":"be6dd9aed06ff...
[JSONWP Proxy] Replacing sessionId be6dd9aed06fff8e2ad2f49b78ce0cac with 1dd208ff-c0ba-458d-b8fa-5b35095b7ef6
[HTTP] <-- POST /wd/hub/session/1dd208ff-c0ba-458d-b8fa-5b35095b7ef6/element 200 7 ms - 220
[debug] [AndroidBootstrap] Emitting alert message...
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Emitting system alert message

from appium-chromedriver.

kpanwar avatar kpanwar commented on August 12, 2024

I just tried the same on a windows machine with ChromeDriver 2.24. Just like all the logs above, switching of context times out after 60 seconds.


[debug] [AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_com.test.app2","WEBVIEW_com.microsoft.aad.adal.userappwithbroker","WEBVIEW_com.azure.authenticator"]
[debug] [AndroidDriver] Connecting to chrome-backed webview context 'WEBVIEW_com.test.app2'
[debug] [AndroidDriver] A port was not given, using random port: 8000
[debug] [Chromedriver] Changed state to 'starting'
[Chromedriver] Set chromedriver binary as: C:\Users\someUser\AppData\Roaming\npm\node_modules\appium\node_modules\appium-chromedriver\chromedriver\win\chromedriver.exe
[Chromedriver] Killing any old chromedrivers, running: FOR /F "usebackq tokens=5" %a in (`netstat -nao ^| findstr /R /C:"8000 "`) do (FOR /F "usebackq" %b in (`TASKLIST /FI "PID eq %a" ^| findstr /I chromedriver.exe`) do (IF NOT %b=="" TASKKILL /F /PID %a))
[Chromedriver] No old chromedrivers seemed to exist
[Chromedriver] Spawning chromedriver with: C:\Users\someUser\AppData\Roaming\npm\node_modules\appium\node_modules\appium-chromedriver\chromedriver\win\chromedriver.exe --url-base=wd/hub --port=8000 --adb-port=5037
[Chromedriver] [STDOUT] Starting ChromeDriver 2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf) on port 8000
Only local connections are allowed.
[JSONWP Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/hub/status] with no body
[JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"\",\"stat...
[JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {"desiredCapabilities":{"ch...
[JSONWP Proxy] Got response with status 200: {"sessionId":"ad974d6bc273a...
[debug] [Chromedriver] Changed state to 'online'
[MJSONWP] Responding to client with driver.setContext() result: null
[HTTP] <-- POST /wd/hub/session/abfc9c57-366f-4537-ab16-a1beb145fb8e/context 200 61537 ms - 76
[HTTP] --> GET /wd/hub/session/abfc9c57-366f-4537-ab16-a1beb145fb8e/source {}
[MJSONWP] Driver proxy active, passing request on via HTTP proxy
[JSONWP Proxy] Proxying [GET /wd/hub/session/abfc9c57-366f-4537-ab16-a1beb145fb8e/source] to [GET http://127.0.0.1:8000/wd/hub/session/ad974d6bc273acdb7585e6f00fbb65cc/source] with body: {}
[JSONWP Proxy] Got response with status 200: "{\"sessionId\":\"ad974d6bc...
[JSONWP Proxy] Replacing sessionId ad974d6bc273acdb7585e6f00fbb65cc with abfc9c57-366f-4537-ab16-a1beb145fb8e
[HTTP] <-- GET /wd/hub/session/abfc9c57-366f-4537-ab16-a1beb145fb8e/source 200 29 ms - 225
[BaseDriver] Shutting down because we waited 60 seconds for a command
[debug] [AndroidDriver] Shutting down Android driver

from appium-chromedriver.

kpanwar avatar kpanwar commented on August 12, 2024

Any updates?

from appium-chromedriver.

kpanwar avatar kpanwar commented on August 12, 2024

Is this even an active project?

from appium-chromedriver.

jlipps avatar jlipps commented on August 12, 2024

@kpanwar yes, but we don't track issues here. We track them at appium/appium

from appium-chromedriver.

rkavalap avatar rkavalap commented on August 12, 2024

Closing this for main repo bug.
appium/appium#7194

from appium-chromedriver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.