List of usage examples for org.openqa.selenium.support.ui ExpectedConditions visibilityOfElementLocated
public static ExpectedCondition<WebElement> visibilityOfElementLocated(final By locator)
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** Select 'Runtime' tab in workspace menu */ public void selectRuntimeTab() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(Locators.RUNTIME_TAB))).click(); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** Expand 'DEV-MACHINE' settings on the 'Runtime' tab */ public void expandDevMachineSettings() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(Locators.DEV_MACHINE))).click(); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** * Select tab into workspace menu//from www . j a v a2s . c o m * * @param tabName is the tab name into workspace menu */ public void selectTabInWorspaceMenu(String tabName) { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions .visibilityOfElementLocated(By.xpath(String.format(Locators.TAB_NAMES_IN_WS, tabName)))) .click(); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.organization.AddMember.java
License:Open Source License
public void clickEditPermissionsButton(String email) { redrawUiElementsTimeout.until(ExpectedConditions .visibilityOfElementLocated(By.xpath(String.format(Locators.EDIT_PERMISSIONS_BUTTON, email)))) .click();//from w w w .jav a 2s . c o m }
From source file:org.eclipse.che.selenium.pageobject.dashboard.organization.NavigationBar.java
License:Open Source License
public void clickOnMenu(MenuItem menuItem) { String locator = String.format(Locators.MENU_ITEM_XPATH, menuItem.title); new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(locator))); seleniumWebDriver.findElement(By.xpath(locator)).click(); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.organization.NavigationBar.java
License:Open Source License
public void clickOnItemByName(String itemName) { String locator = String.format(Locators.MENU_ITEM_XPATH, itemName); new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(locator))); seleniumWebDriver.findElement(By.xpath(locator)).click(); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.organization.OrganizationPage.java
License:Open Source License
public void deleteMember(String email) { String s = String.format(Locators.MEMBERS_LIST_ITEM_XPATH, email); s = s + "/ancestor::div[3]" + Locators.MEMBER_CHECKBOX; WaitUtils.sleepQuietly(1);/* w w w . j a va2 s .c om*/ redrawUiElementsTimeout.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(s))).click(); redrawUiElementsTimeout.until(ExpectedConditions.visibilityOf(deleteMemberButton)).click(); redrawUiElementsTimeout.until(ExpectedConditions.visibilityOf(widgetDeleteMemberButton)).click(); redrawUiElementsTimeout.until(ExpectedConditions .invisibilityOfElementLocated(By.xpath(String.format(Locators.MEMBERS_LIST_ITEM_XPATH, email)))); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.organization.OrganizationPage.java
License:Open Source License
public String getMembersNameByEmail(String email) { String s = String.format(Locators.MEMBERS_LIST_ITEM_XPATH, email); s = s + "/ancestor::div[2]//span[contains(@class, 'member-email')]"; return redrawUiElementsTimeout.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(s))).getText(); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.organization.ProjectSourcePage.java
License:Open Source License
public void waitOpened() { new WebDriverWait(seleniumWebDriver, TestTimeoutsConstants.LOADER_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector(Locators.POPOVER_CSS))); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.workspaces.WorkspaceInstallers.java
License:Open Source License
public void checkInstallerExists(String installerName) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC).until(ExpectedConditions .visibilityOfElementLocated(By.xpath(format(Locators.INSTALLER_NAME, installerName)))); }