Web-view Accessing-Hybrid Application(Android)

I am not getting WEBVIEW_1,WEBVIEW_2 etc in while using following statements

Set contextNames = driver.getContextHandles();
for (String contextName : contextNames) {
only getting NATIVE_APP in console any guidelines for this?

Hi @Jimit24365,

You might want to make sure that WebView is enabled for your application. For this you will have to contact app developer to check if webview is enabled and then use Appium for getting list of contexts


what you mean by webview enabled? “setWebContentsDebuggingEnabled”?

Yes, I suppose so. Only if WebView is exposed we can get it in list of contexts.
So, need to check the mechanism to expose WebView to be used with Appium.


1 Like