Switching Contexts on iOS real device does not change current view

When switching contexts on a real iOS device through appium, the view is not changing. For example:

  1. I click a link that opens a new tab in WEBVIEW_1
  2. WEBVIEW_2 is created and the context is automatically switched
  3. I switch the context back to WEBVIEW_1 (and switch to the appropriate window handle)
  4. WEBVIEW_2 is still displayed.

I am using appium 1.7.0 on BrowserStack.

Conversely, when switching contexts on a simulated device, the webviews do change. Is this a known issue with real devices?

I’d preferably like to close the new WEBVIEW, but calling Close on the webdriver is crashing my appium so unfortunately that is not a solution.

1 Like