Comments (8)
@imurchie - can you please confirm if this is truly a chrome driver issue? I think so, but you are the expert.
from appium-chromedriver.
Looks like its bug on macOS Sierra. It says it fixed upstream. Give a try with latest chromedriver.
from appium-chromedriver.
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.
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.
Any updates?
from appium-chromedriver.
Is this even an active project?
from appium-chromedriver.
@kpanwar yes, but we don't track issues here. We track them at appium/appium
from appium-chromedriver.
Closing this for main repo bug.
appium/appium#7194
from appium-chromedriver.
Related Issues (20)
- Action required: Greenkeeper could not be activated 🚨
- Original error: unknown error: unable to discover open pages HOT 1
- Appium session times out after a long time waiting to interact with the Chrome browser HOT 2
- Chromedriver needs updating HOT 1
- Unable to use chromedriver_autodownload HOT 7
- Need update on npm HOT 5
- Test Script not able to locate element on Real Device post switching to webview of a hybrid app. HOT 9
- Installation via proxy HOT 5
- Cannot install - Socket Hang Up [OSX 10.11.4] HOT 1
- Expose all the arguments of chromedriver. HOT 2
- startSession() should have restartAdb logic as present in previous versions of appium HOT 1
- Issue in installing appium on mac through terminal window nom install appium command HOT 8
- Node install failure on version 2.9.2 HOT 4
- Unit tests are failing on gulp.once HOT 5
- Error with chromedriver when installing appium HOT 7
- Add Support for Installing Chromedriver 2.23+ on OS X HOT 5
- The Added Support for Installing Chromedriver 2.23+ on OS X HOT 8
- Error with chromedriver when installing appium1.6.0 HOT 12
- Action required: Greenkeeper could not be activated 🚨
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appium-chromedriver.