List of usage examples for org.openqa.selenium.support.ui ExpectedConditions visibilityOfElementLocated
public static ExpectedCondition<WebElement> visibilityOfElementLocated(final By locator)
From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java
private static void waitForAuthenticationScreen(WebDriverWait wait1) throws IOException { wait1.until(ExpectedConditions .visibilityOfElementLocated(By.xpath(applangoButtons.AUTHENTICATION_SUBMIT.getValue().toString()))); }
From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java
private static void waitForAuthenticateVerify(WebDriverWait wait) throws IOException { logger.info("wait for verify button"); wait.until(ExpectedConditions .visibilityOfElementLocated(By.id(applangoButtons.AUTHENTICATION_VERIFY.getValue().toString()))); }
From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java
private static void waitForAuthenticateLink(WebDriverWait wait) throws IOException { wait.until(ExpectedConditions.visibilityOfElementLocated( By.id(applangoObject.AUTHENTICATION_CLICK_HERE_LINK.getValue().toString()))); }
From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java
public static void waitForSuccessfulAuthenticatedMessage(WebDriver driver1, WebDriverWait wait1) throws IOException { wait1.until(ExpectedConditions.visibilityOfElementLocated( By.id(applangoObject.AUTHENTICATION_AUTHENTICATED_SUCCESS.getValue().toString()))); Assert.assertTrue(driver1/*from w w w. j ava 2 s . co m*/ .findElement(By.id(applangoObject.AUTHENTICATION_AUTHENTICATED_SUCCESS.getValue().toString())) .getText().contains(applangoMessages.AUTHENTICATION_SUCCESSFUL.getValue().toString())); }
From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java
public static void waitForSuccessfulAccountAuthenticatedMessage(WebDriverWait wait1) throws IOException { logger.info("Wait for message: " + applangoMessages.AUTHENTICATION_SUCCESSFUL_IN_APPLICATION.getValue().toString()); wait1.until(ExpectedConditions.visibilityOfElementLocated(By .id(applangoObject.AUTHENTICATION_AUTHENTICATED_SUCCESSFULLY_IN_DASHBOARD.getValue().toString()))); }
From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java
private static void waitForRecoverPasswordRequestSent(WebDriverWait wait) throws IOException { wait.until(ExpectedConditions.visibilityOfElementLocated( By.id(applangoObject.RECOVER_PASSWORD_REQUEST_SENT.getValue().toString()))).getText() .contains(applangoMessages.RECOVER_PASSWORD_REQUEST_SENT.getValue().toString()); }
From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java
private static void waitForRecoverPasswordButton(WebDriverWait wait) throws IOException { wait.until(ExpectedConditions .visibilityOfElementLocated(By.id(applangoButtons.RECOVER_PASSWORD_BUTTON.getValue().toString()))); wait.until(ExpectedConditions.visibilityOfElementLocated( By.id(applangoTextfields.FORGOT_PASSWORD_USERNAME.getValue().toString()))); }
From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java
public static void waitForFailureAuthenticatedMessage(WebDriver driver1, WebDriverWait wait1) throws IOException { wait1.until(ExpectedConditions.visibilityOfElementLocated( By.id(applangoObject.AUTHENTICATION_AUTHENTICATED_FAILURE.getValue().toString()))); Assert.assertTrue(driver1//from ww w . j av a 2s.c om .findElement(By.id(applangoObject.AUTHENTICATION_AUTHENTICATED_FAILURE.getValue().toString())) .getText().contains(applangoMessages.AUTHENTICATION_FAILURE.getValue().toString())); }
From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java
public static void checkEnterNewPasswordScreenLoaded(WebDriver driver2, WebDriverWait wait2) throws IOException { wait2.until(ExpectedConditions .visibilityOfElementLocated(By.id(applangoTextfields.NEW_PASSWORD.getValue().toString()))); Assert.assertTrue(driver2.findElement(By.id(applangoObject.CHANGE_PASSWORD_MESSAGE.getValue().toString())) .getText().contains(applangoMessages.RESET_PASSWORD_DEFAULT.getValue().toString())); }
From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java
private static void checkUserAppData(WebDriverWait wait1) throws IOException { logger.info("Check user app in people page"); wait1.until(ExpectedConditions.visibilityOfElementLocated((By.id("appData")))); //wait for activity chart to load wait1.until(ExpectedConditions//from www.j a va 2 s. c o m .visibilityOfElementLocated((By.id(applangoObject.PEOPLEPAGE_USER_CHART.getValue())))); //wait for activity chart to load wait1.until(ExpectedConditions .visibilityOfElementLocated((By.id(applangoObject.PEOPLEPAGE_USER_DETAILS.getValue())))); //wait for activity chart to load }