0

I am not able to find the elements from android.webkit.WebView in my native app.

The attribute of "setWebContentsDebuggingEnabled" is set to "TRUE".

I know that the context switch is successful, because the output of my current context prints in the terminal that I'm in the webview.

I used native app locator, web locators and also tried AndroidScrollable locator to locate with text or class name. But still I can't locate any element on the hybrid screen(webview), it doesn't find them. (Using JavaScript + WebdriverIO with Appium + Mocha Framework)

Similar issues were raised before:

Why is Appium unable to locate elements in a Webview in a native app even after switching contexts?

Can’t find elements on a webview page of an android Native app using Appium and Python

Please reply if you have any suggestions for this issue.

Ali
  • 1
  • 2

0 Answers0