WebElement link = driver.findElement(By.id("link3"));
int originalY = link.getLocation().y;
// The element is located at the bottom of the page,
// so it is not initially visible on the screen.
Action flick = getBuilder(driver).flick(0, -1500).build();
flick.perform();
int newY = link.getLocation().y;
// After flicking, the element should now be visible on the screen.
assertTrue(newY < originalY, "Expected y < " + originalY + ", but got y = " + newY);
}