Scrolling down issue

Hello,

I am currently using Appium server v1.4.16.1 for android application automation on real device. I am facing the issue on real android device when I try to scroll down the device screen programmatically, for following code,

  **JavascriptExecutor jse = (JavascriptExecutor)driver;**

** ((JavascriptExecutor) driver).executeScript(“window.scrollBy(0, 250)”, “”);**

It generates an EXCEPTION as:
:Not yet implemented. Please help us: http://appium.io/get-involved.html (WARNING: The server did not provide any stacktrace information)

can you please provide me the solution regarding the same.

Use this :slight_smile:
JavascriptExecutor js= (JavascriptExecutor) driver ;
js.executeScript(“arguments[0].scrollIntoView(true);”,driver.findElement(by));

Thanks for your reply.

I have tried this one, with scroll view id but it’s still not working.
So can you suggest any other solution, if you have any.

I got the solution for scrolling down issue on real android device using appium, when I have implemented the following code.

        **TouchAction tAction=new TouchAction((MobileDriver) driver);**

** tAction.press(20,800).waitAction(1000).moveTo(10,10).release();**

** tAction.perform();**