@Test public void testScrollTopAndBottom() throws PageException { // scroll to bottom webpage.scrollBottom(); // find "Amazon Payment Products" element and assert on it. ITafElement element = webpage.findObjectByxPath(prop.getProperty("amazon_payment_products")); Assert.assertEquals("Amazon Payment Products", element.getText()); // Scroll to Top webpage.scrollTop(); // find sign in text and assert element = webpage.findObjectByxPath(prop.getProperty("amazon_signin_text")); Assert.assertEquals("Hello. Sign in", element.getText()); element.hover(); }