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);

```
This is how i tried a scroll down a side menu and find a logout

//Swipe down the side menu and click on logout

```
 @Test
         public void T4b_logout() throws InterruptedException{  
              size = driver.manage().window().getSize(); //Get the size of screen.
              System.out.println(size);                   
              int starty = (int) (size.height * 0.80);//Find starty point which is at bottom side of screen.
              int endy = (int) (size.height * 0.20);  //Find endy point which is at top side of screen.          
              int startx = size.width / 2; //Find horizontal point where you wants to swipe. It is in middle of screen width.       
              System.out.println("starty = " + starty + " ,endy = " + endy + " , startx = " + startx);   // int startx = size.width;
              driver.swipe(startx, starty, startx, endy, 3000);//Swipe from Bottom to Top.
              Thread.sleep(2000);
              driver.findElement(By.name("Logout")).click();
              driver.findElement(By.xpath("//android.widget.Button[@text='Ok']")).click();

         }

```