@Test public void testScrollToElement() throws PageException { // find the element "Amazon.com Rewards Visa Card" ITafElement element = webpage.findObjectByxPath(prop.getProperty("amazon_rewards_visa_card")); // Scroll to the element webpage.scrollToElement(element); // Assert and click on it Assert.assertEquals("Amazon.com Rewards Visa Card", element.getText()); element.click(); }