Example usage for org.openqa.selenium.support.ui ExpectedConditions visibilityOfAllElementsLocatedBy

List of usage examples for org.openqa.selenium.support.ui ExpectedConditions visibilityOfAllElementsLocatedBy

Introduction

In this page you can find the example usage for org.openqa.selenium.support.ui ExpectedConditions visibilityOfAllElementsLocatedBy.

Prototype

public static ExpectedCondition<List<WebElement>> visibilityOfAllElementsLocatedBy(final By locator) 

Source Link

Document

An expectation for checking that all elements present on the web page that match the locator are visible.

Usage

From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java

public static void waitForDashboardLoginPageToLoad(WebDriverWait wait) throws IOException {
    wait.until(ExpectedConditions
            .visibilityOfAllElementsLocatedBy(By.id(applangoButtons.LOGIN_SUBMIT.getValue().toString())));
}

From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java

public static void waitForUsersTableToLoad(WebDriverWait wait) throws IOException {
    wait.until(ExpectedConditions
            .visibilityOfAllElementsLocatedBy(By.id(applangoObject.USERTABLE_ID.getValue().toString())));
}

From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java

public static void waitForUserDetailsInPeoplePage(WebDriverWait wait) throws IOException {
    logger.info("wait For User Details In PeoplePage");
    wait.until(ExpectedConditions
            .visibilityOfAllElementsLocatedBy((By.id(applangoObject.PEOPLEPAGE_USERDETAIL.getValue()))));
}

From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java

public static void clickSaveBoxNoLogin(WebDriver driver1, WebDriverWait wait1) throws IOException {
    logger.info("Save Alert Threshold ");

    wait1.until(ExpectedConditions
            .visibilityOfAllElementsLocatedBy(By.xpath("//*[@id=\"alertsdiv\"]/div[2]/span[1]")));
    driver1.findElement(By.xpath("//*[@id=\"alertsdiv\"]/div[2]/span[1]")).click();
    genericApplangoWebsiteActions.waitUntilWaitForServerDissappears(wait1);
}

From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java

public static void openPeoplePage(WebDriver driver1, WebDriverWait wait1) throws IOException {
    logger.info("Open people page");
    driver1.findElement(By.xpath(applangoObject.PEOPLE_PAGE_TAB.getValue())).click();
    wait1.until(ExpectedConditions
            .visibilityOfAllElementsLocatedBy(By.id(applangoButtons.PEOPLE_PAGE_SEARCH.getValue())));
}

From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java

public static void openReportPage(WebDriver driver1, WebDriverWait wait1) throws IOException {
    logger.info("Open Report page");
    driver1.findElement(By.xpath(applangoObject.REPORT_PAGE_TAB.getValue())).click();
    wait1.until(ExpectedConditions
            .visibilityOfAllElementsLocatedBy(By.id(applangoButtons.REPORT_PAGE_SEARCH.getValue())));
}

From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java

public static void clickOnReportSearch(WebDriver driver1, WebDriverWait wait1) throws IOException {
    logger.info("Click On report search button");
    driver1.findElement(By.id(applangoButtons.REPORT_PAGE_SEARCH.getValue())).click();
    genericApplangoWebsiteActions.waitUntilWaitForServerDissappears(wait1);
    waitForReportDataHolder(wait1);/*  ww w  .  ja  v  a2s.c  o  m*/
    waitForReportDataChart(wait1);
    wait1.until(ExpectedConditions
            .visibilityOfAllElementsLocatedBy(By.id(applangoButtons.REPORT_PAGE_EXPORT.getValue())));
    wait1.until(ExpectedConditions
            .visibilityOfAllElementsLocatedBy(By.id(applangoButtons.REPORT_PAGE_DOWNLOAD.getValue())));
}

From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java

private static void waitForReportDataChart(WebDriverWait wait1) throws IOException {
    logger.info("wait For Report Data Chart");
    wait1.until(ExpectedConditions
            .visibilityOfAllElementsLocatedBy((By.id(applangoObject.REPORT_DATA_CHART.getValue()))));
}

From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java

private static void waitForReportDataTable(WebDriverWait wait1) throws IOException {
    logger.info("wait For Report Data Table");
    wait1.until(ExpectedConditions
            .visibilityOfAllElementsLocatedBy((By.id(applangoObject.REPORT_DATA_TABLE.getValue()))));
}

From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java

private static void waitForReportDataHolder(WebDriverWait wait1) throws IOException {
    logger.info("wait For Report Data Holder");
    wait1.until(ExpectedConditions
            .visibilityOfAllElementsLocatedBy((By.id(applangoObject.REPORT_DATA_HOLDER.getValue()))));
}