@Test public void customerPortalSessionTest() { customerPortalExample.navigateTo(); customerPortalExample.customerSession(); testRealmLoginPage.form().login("*****@*****.**", "password"); assertCurrentUrlStartsWith(customerPortalExample); customerPortalExample.waitForCustomerSessionHeader(); Assert.assertTrue(driver.getPageSource().contains("You visited this page")); }