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

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.

About this issue

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

Most upvoted comments

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

capabilities.setCapability("recreateChromeDriverSessions", true);

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

Worked like a charm - thanks!