List of usage examples for org.openqa.selenium By id
public static By id(String id)
From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java
public static void searchPeople(WebDriver driver1, WebDriverWait wait1, String firstName, String lastName, String email, months fromMonth, String fromYear, months toMonth, String toYear) throws IOException { logger.info("Search for:" + firstName + " " + lastName + " email: " + email); driver1.findElement(By.id(applangoTextfields.PEOPLE_PAGE_FIRSTNAME.getValue())).sendKeys(firstName); driver1.findElement(By.id(applangoTextfields.PEOPLE_PAGE_LASTNAME.getValue())).sendKeys(lastName); driver1.findElement(By.id(applangoTextfields.PEOPLE_PAGE_EMAIL.getValue())).sendKeys(email); clickOnPeoplePageSearchButton(driver1, wait1); }
From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java
private static void clickOnPeoplePageSearchButton(WebDriver driver1, WebDriverWait wait1) throws IOException { logger.info("click On People Page Search Button "); driver1.findElement(By.id(applangoButtons.PEOPLE_PAGE_SEARCH.getValue())).click(); waitUntilWaitForServerDissappears(wait1); }
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 w ww .j a v a2 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 }
From source file:applango.common.services.Applango.genericApplangoWebsiteActions.java
private static void waitForGraphRollUp(WebDriverWait wait1) throws IOException { logger.info("Wait until graphRolledUp appear"); wait1.until(ExpectedConditions/*from w w w.j a v a2 s .c om*/ .visibilityOfElementLocated((By.id(applangoObject.PEOPLEPAGE_GRAPHROLLUP.getValue())))); }
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/* w w w . java2 s . c o m*/ .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/*w w w. ja va2s . com*/ .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);//from w w w .j a va 2 s.co 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/*from w w w .j av a2s . c o m*/ .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//from ww w. j a v a 2s .c om .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/*from www . jav a 2 s. c o m*/ .visibilityOfAllElementsLocatedBy((By.id(applangoObject.REPORT_DATA_HOLDER.getValue())))); }