List of usage examples for org.openqa.selenium.support.ui ExpectedConditions invisibilityOfElementLocated
public static ExpectedCondition<Boolean> invisibilityOfElementLocated(final By locator)
From source file:org.eclipse.che.selenium.pageobject.ConfigureClasspath.java
License:Open Source License
/** wait the 'Select Path' form is closed */ public void waitSelectPathFormIsClosed() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(SELECT_PATH_FORM))); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardProject.java
License:Open Source License
/** * wait the project is not present in the 'All projects' tab * * @param projectName name of project/* w ww . j a v a 2s . c o m*/ */ public void waitProjectIsNotPresent(String projectName) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC).until(ExpectedConditions .invisibilityOfElementLocated(By.xpath(String.format(Locators.PROJECT_BY_NAME, projectName)))); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** wait the workspace is not present on dashboard */ public void waitWorkspaceIsNotPresent(String nameWorkspace) { new WebDriverWait(seleniumWebDriver, TestTimeoutsConstants.ELEMENT_TIMEOUT_SEC).until(ExpectedConditions .invisibilityOfElementLocated(By.xpath(format(Locators.WORKSPACE_ITEM_NAME, nameWorkspace)))); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.DashboardWorkspace.java
License:Open Source License
/** * Wait the email of developer is not present in 'Share' tab * * @param email the email of developer//from w w w . ja v a2 s. c o m */ public void waitDeveloperIsNotPresentInShareTab(String email) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC).until(ExpectedConditions .invisibilityOfElementLocated(By.xpath(format(Locators.DEVELOPER_SHARE_ITEM, email)))); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.organization.AddOrganization.java
License:Open Source License
public void waitAddOrganizationButtonIsNotVisible() { redrawUiElementsTimeout.until( ExpectedConditions.invisibilityOfElementLocated(By.xpath(Locators.CREATE_ORGANIZATION_BUTTON))); }
From source file:org.eclipse.che.selenium.pageobject.dashboard.organization.OrganizationPage.java
License:Open Source License
public void checkMemberIsNotExistsInMembersList(String email) { 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 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 ava2s . com 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.debug.AbstractDebugConfig.java
License:Open Source License
/** Wait closing of the Debug configuration widget */ public void waitDebugConfigurationIsClosed() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC).until( ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.DEBUG_CONFIGURATION_WIDGET_ID))); }/*from w ww. ja v a 2 s.c o m*/
From source file:org.eclipse.che.selenium.pageobject.debug.AbstractDebugConfig.java
License:Open Source License
/** * Remove debug config with certain name and then close Debug Configuration form. */*from www . j a va 2s . co m*/ * @param configName name of configuration to remove. */ public void removeConfig(String configName) { String configItemXpath = String.format(Locators.CONFIG_ITEM_XPATH_TEMPLATE, configName); new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(configItemXpath))).click(); String removeConfigButtonXpath = String.format(Locators.REMOVE_CONFIG_BUTTON_XPATH_TEMPLATE, configName); new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(removeConfigButtonXpath))).click(); new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOf(deleteConfigurationDialogTitle)); new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.id(AskDialog.OK_BTN_ID))).click(); new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.id(AskDialog.OK_BTN_ID))); new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(configItemXpath))); close(); }
From source file:org.eclipse.che.selenium.pageobject.debug.DebugPanel.java
License:Open Source License
/** Wait while debugger panel will be clear for all breakpoints */ public void waitWhileAllBreakPointsOnEditorPanelDisapper() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.cssSelector("div.breakpoint"))); }