Skip to content

Failed to switch context from native_app to web_view #255

@Lanuet

Description

@Lanuet

The problem

Failed to switch context from native_app to web_view. I also clone your project and run test/functional/context_switching_tests.py, but i see the same issue. Pls help me.

Environment

  • Appium version (or git revision) that exhibits the issue: v1.9.0
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: Window 10 x86_64
  • Node.js version (unless using Appium.app|exe):
  • Mobile platform/version under test: Android | 5.1.1
  • Real device or emulator/simulator: real device
  • Appium CLI or Appium.app|exe:

Details

  • start
  • current_context = NATIVE_APP
  • switch to: web_app
  • I see the following error:
    ** selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Failed to start Chromedriver session: An unknown server-side error occurred while processing the command. Original error: unknown error: Failed to get sockets matching: @webview_devtools_remote_.*18724
    (make sure the app has its WebView configured for debugging)
    (Driver info: chromedriver=2.42.591088 (7b2b2dca23cca0862f674758c9a3933e685c27d5),platform=Windows NT 10.0.17134 x86_64) **

Link to Appium Logs

[appium log]https://gist.github.com/Lanuet/9641d5e0e8a59da866e79565fb6fb3c4)

Code To reproduce issue

web_view = context.driver.contexts[1]
context.driver.switch_to.context(web_view)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions