What is the purpose of using autoWebview capability in Appium especially for iOS (with webviews)?
Posted on February 28, 2020
By Sridatta Pani
If you are testing Hybrid Apps, which are basically 100% webview, it can be inconvenient to remember to switch to using the Webview Context before every test. Sending the autoWebview capability tells appium to automatically switch to the WEBVIEW_CONTEXT as soon as the test starts. Appium also adds some additional logic for waiting until the webview has loaded, which can be a common source of errors.
Example:-capabilities.setCapability("autoWebview", true);