Hi ,
Native App contains few screens as WebView. I have to scroll in the WebView screen and normal Swipe method is not working. Same method is working in Native screens.
I implemented below code.
Set contextNames = driver.getContextHandles();
for (String contextName : contextNames) {
//System.out.println(contextName);
if (contextName.contains("WEBVIEW")){
driver.context(contextName);
// driver.switchTo();
Thread.sleep(5000);
}
}
I am able to perform operations on WebView elements but swipe is not happening
driver.swipe(540,1536,540,384,2000) , this works in Native screens.
Can anyone guide me in this? how to perform swipe in WebView screens embedded in the Android Native Apps.
Regards,
Kiran