public class PageChainingAcceptanceTest {
private static final String SOME_TEXT = "some random textina" + new Date();
public void shouldPassEnteredTextToNextPage() {
WebDriver driver = AcceptanceTest.createWebDriver();
PageChainPage page = PageChainPage.open(driver);
page.enterText(SOME_TEXT);
page.next();
// We should now be on the NextPage page
assert driver.findElement(By.xpath("//div[@class='entry']"))
.getText()
.contains(SOME_TEXT)