working on hybrid app, trying to switch to WebView. It switches to web view but unable to perform any actions on it. I tried fetching the page source and only got this:
<html><head></head><body></body></html>
however, I am able to inspect element through chrome developer tool.
What can be the cause for this? I checked only two context is available one is native and other is webview
Appium java client which I am using is 7.0.0
I tried specifying different waits, thread.sleep
and newCommandTimeOut
:
driver.context("WEBVIEW_1");
System.out.println(driver.getPageSource());