How to scroll down android hybrid webview?

Hi,
I am automating an android hybrid app.
I switched to webview context and now i am looking to scroll to the last element.
i am unable to scroll using driver.scrollTo.

Which method should i use to navigate smoothly using appium?

Use selendroid for webview, you dont need to use scroll function for same.

@yogendra.londhe

How to use selendroid for webView.

Could you please explain?

Thank you
Ravi

public void switchToWebview() throws IOException, InterruptedException{
//Thread.sleep(30000L);
try{
Set contextNames = driver.getContextHandles();
for (String contextName : contextNames) {
System.out.println(contextNames); //prints out something like NATIVE_APP \n WEBVIEW_1

      }
      driver.context("WEBVIEW_com.shaadi.android");
      //driver.switchTo().window("WEBVIEW_0");
      }catch(Exception e){
          e.printStackTrace();
      }
  }

@yogendra.londhe

Thanks a lot!!!

I will implement this and let you know… :smile: :smiley: