In the case of hybrid app how to switch context ? – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> In the case of hybrid app how ...

In the case of hybrid app how to switch context ?


Code Snippet:

Set contextNames = driver.getContextHandles();
driver.context();
Yes, WebView.setWebContentsDebuggingEnabled(true); is needed for webviews to work through UI Automator. This is an Android requirement, not Appium.

Leave a Reply

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