Question: I am testing hybrid android app using Appium. I want to scroll to page bottom and then click on one link. Could anyone please tell me how to scroll to page bottom.

Many thanks!

Answer: 
First you can find the x and y coordinates by using inspector and then use this code:

```
driver.swipe(startx, starty, endx, endy, duration);

```
`scrollToExact` and `scrollTo` method is depricated since JAVA client version 4.0.0 (<https://github.com/appium/java-client/blob/master/README.md>).

`swipe` method also depricated (since 5.0.0-BETA1)

You can use `UiScrollable` and `UiSelector` and their methods to scroll any page (<https://developer.android.com/reference/android/support/test/uiautomator/UiScrollable.html>).

Example of code:

```
@AndroidFindBy (uiAutomator = "new UiScrollable(new
    UiSelector()).scrollIntoView(new UiSelector().textContains(\"Question
\"))")

```

If you want scroll to the bottom of page, please create method that will do several steps (see code above) to find last element of page, otherwise you will get an error (Element not found).

I'm using this method:

```
    @AndroidFindBy (uiAutomator = "new UiScrollable(new UiSelector()).scrollIntoView(new UiSelector().textContains(\"Element1\"))")
public WebElement scrollStepOne;
    @AndroidFindBy (uiAutomator = "new UiScrollable(new UiSelector()).scrollIntoView(new UiSelector().textContains(\"Element2\"))")
public WebElement scrollStepTwo;

```

and then method:

```
public void scrollToTheBottom(){
        scrollStepOne.isDisplayed();
        scrollStepTwo.isDisplayed();
}

```

Hope it helps.