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.debug.DebugPanel.java
License:Open Source License
/** Wait disappear variable form */ public void waitDisappearChangeVariableForm() { new WebDriverWait(seleniumWebDriver, 20) .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(LocatorsChangeVariable.TEXTAREA))); }
From source file:org.eclipse.che.selenium.pageobject.debug.DebugPanel.java
License:Open Source License
/** Click on close evaluate exp. button */ public void clickCloseEvaluateBtn() { String locator = "//button[text()='Evaluate']/preceding-sibling::button"; new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(locator))).click(); new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(locator))); }
From source file:org.eclipse.che.selenium.pageobject.DialogAbout.java
License:Open Source License
public void closeAboutDialog() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(aboutDialogOkButton)).click(); new WebDriverWait(seleniumWebDriver, 3) .until(ExpectedConditions.invisibilityOfElementLocated(By.cssSelector(ABOUT_DIALOG))); }
From source file:org.eclipse.che.selenium.pageobject.DialogAbout.java
License:Open Source License
/** wait 'About Codenvy' dialog is open */ public void waitAboutDialogIsOpen() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.cssSelector(ABOUT_DIALOG))); }
From source file:org.eclipse.che.selenium.pageobject.DialogAbout.java
License:Open Source License
public void closeBuildDetailsDialog() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.elementToBeClickable(buildDetailsOkButton)).click(); new WebDriverWait(seleniumWebDriver, 3) .until(ExpectedConditions.invisibilityOfElementLocated(By.cssSelector(BUILD_DETAILS_WINDOW))); }
From source file:org.eclipse.che.selenium.pageobject.FindText.java
License:Open Source License
/** wait the 'Find Text' main form is closed */ public void waitFindTextMainFormIsClosed() { loader.waitOnClosed();// w w w . ja v a2 s . c o m new WebDriverWait(seleniumWebDriver, ELEMENT_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.MAIN_FORM))); }
From source file:org.eclipse.che.selenium.pageobject.FindText.java
License:Open Source License
/** wait the 'Find' info panel is closed */ public void waitFindInfoPanelIsClosed() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.FIND_INFO_PANEL))); }
From source file:org.eclipse.che.selenium.pageobject.git.GitAddToIndex.java
License:Open Source License
public void waitFormToClose() { new WebDriverWait(seleniumWebDriver, 7) .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.ADD_TO_INDEX_FORM))); }
From source file:org.eclipse.che.selenium.pageobject.git.GitBranches.java
License:Open Source License
/** wait disappear of the IDE branches form */ public void waitBranchesFormISIsClosed() { new WebDriverWait(seleniumWebDriver, 15) .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.MAIN_FORM_ID))); }
From source file:org.eclipse.che.selenium.pageobject.git.GitBranches.java
License:Open Source License
public void disappearBranchName(String nameOfBranch) { new WebDriverWait(seleniumWebDriver, 5).until(ExpectedConditions.invisibilityOfElementLocated( By.id(String.format(Locators.BRANCH_NAME_IN_LIST_PREFIX, nameOfBranch)))); }