Search code examples
javascriptiosappiumdevice

Webview missing from list of contexts


I am running tests using WebdriverIO with Appium. Recently my tests started failing when trying to switch to webview context (driver.switchContext('WEBVIEW_1')). Tests are running on a real iPhone. I am running tests on a new test device.


Solution

  • On the device navigate to Settings > Safari > Advanced and enable Web Inspector.