What is the purpose of using autoWebview capability in Appium especially for iOS (with webviews)? – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> What is the purpose of using autoWebview ...

What is the purpose of using autoWebview capability in Appium especially for iOS (with webviews)?




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);

Leave a Reply

Your email address will not be published. Required fields are marked *