@Test @InSequence(2) public void adminCreateApplicationTest() { driver.get(contextRoot.toExternalForm()); loginPage.waitForPage(); loginPage.login(ADMIN_USERNAME, PASSWORD); if (passwordChangePage.isPagePresent()) { passwordChangePage.changePassword(PASSWORD); } navigation.goToApplications(); pushAppsPage.waitForPage(); navigation.goToApplications(); // initially there shouldn't exist any push applications while (!pushAppsPage.getApplicationList().isEmpty()) { Application application = pushAppsPage.getApplicationList().get(0); application.remove(); modal.waitForDialog(); modal.confirmName(application.getName()); modal.remove(); } pushAppsPage.pressCreateButton(); pushAppEditPage.registerNewPushApp(ADMIN_APPLICATION, ""); header.logout(); }