@Test
  public void testCanScrollHorizontally() {
    openWebdriverTestPage(HtmlTestData.LONG_CONTENT_PAGE);

    WebElement link = driver().findElement(By.id("link1"));
    int x = link.getLocation().x;
    // The element is located at the right of the page,
    // so it is not initially visible on the screen.
    assertTrue("Expected x > 1500, but got x = " + x, x > 1500);

    Action scrollDown = getBuilder(driver()).scroll(400, 0).build();
    scrollDown.perform();

    x = link.getLocation().y;
    // After scrolling, the location of the element should change accordingly.
    assertTrue("Expected x < 1500, but got x = " + x, x < 1500);
  }
Tests the basic scroll operations on touch enabled devices..
selendroid-test-app/src/test/java/io/selendroid/webviewdrivertests/touch/TouchScrollTest.java