question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to reconnect to chromedriver when switching back from native to webview

See original GitHub issue

Using fairly recent appium on android hybrid app. You can switch to webview but if you return back to native and then try to switch back to webview, it timesout as it is unable to reconnect to the chromedriver.

When reconnecting…

 info: [debug] Connecting to chrome-backed webview
> info: [debug] Found existing Chromedriver for context 'WEBVIEW_com.someapp. Using it.
> info: [debug] Making http request with opts: {"url":"http://127.0.0.1:9515/wd/hub/session/3a3a448ad0ab32fe889d61f4b0dc6cd6/url","method":"GET"}
> info: [debug] Didn't get a new command in 60 secs, shutting down...

I am not sure it is because the existing session and its colliding.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:26 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
moizjvcommented, Jan 25, 2016

All can some one paste appium logs from appium 1.5 run. Please use recreateChromeDriverSessions capability to true

1reaction
dimitarzcommented, Jun 14, 2016

capabilities.setCapability("recreateChromeDriverSessions", true);

[debug] [AndroidDriver] recreateChromeDriverSessions set to true; killing existing chromedrivers

Worked like a charm - thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't switch back to native app view from web view for ...
Hi, My python test script will first, in native app context, navigate to a page with a webview , and then switch to...
Read more >
I am able to switch to webview in real device but unable to ...
1 Answer 1 · Check browser version on emulator · Find matching chrome driver here and download it to machine, where you host...
Read more >
Capabilities & ChromeOptions - WebDriver for Chrome
This page documents all ChromeDriver supported capabilities and how to use them. ... If the latter, you can use the user-data-dir Chrome command-line...
Read more >
How to Fix the ERR_CONNECTION_REFUSED Error in Chrome
In Mozilla Firefox it will simply show as Unable to connect. ... your next step will be to try 'turning it off and...
Read more >
Switch to Webview - Google Groups
I have a hybrid app using Xamarin, I am trying to switch to the Webview using ... I assume that if I am...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found