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.intelligent.CommandsPalette.java
License:Open Source License
/** * Start the command by doubleClick/*from www . j a v a 2s . c o m*/ * * @param commandName name of the command */ public void startCommandByDoubleClick(String commandName) { String locatorToCurrentCommand = format(Locators.COMMANDS, commandName); WebElement currentCommand = redrawUiElementTimeout .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(locatorToCurrentCommand))); actions.doubleClick(currentCommand).perform(); redrawUiElementTimeout .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(locatorToCurrentCommand))); }
From source file:org.eclipse.che.selenium.pageobject.intelligent.CommandsPalette.java
License:Open Source License
/** * Start the command by pressing Enter key * * @param commandName name of the command *//*w w w.jav a 2s. co m*/ public void startCommandByEnterKey(String commandName) { String locatorToCurrentCommand = format(Locators.COMMANDS, commandName); WebElement currentCommand = redrawUiElementTimeout .until(ExpectedConditions.visibilityOfElementLocated(By.xpath(locatorToCurrentCommand))); seleniumWebDriver.findElement(By.xpath(locatorToCurrentCommand)).click(); actionsFactory.createAction(seleniumWebDriver).sendKeys(currentCommand, Keys.ENTER.toString()).perform(); redrawUiElementTimeout .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(locatorToCurrentCommand))); }
From source file:org.eclipse.che.selenium.pageobject.LoadingBehaviorPage.java
License:Open Source License
/** wait closing of the Staring workspace page */ public void waitWhileLoadPageIsClosed() { new WebDriverWait(seleniumWebDriver, EXPECTED_MESS_IN_CONSOLE_SEC).until( ExpectedConditions.invisibilityOfElementLocated(By.cssSelector(Locators.STATE_IDE_FRAME_CSS))); }
From source file:org.eclipse.che.selenium.pageobject.MultiSplitPanel.java
License:Open Source License
/** wait closing menu of the multi split panel */ public void waitSplitPanelMenuIsClosed() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(Locators.SPLIT_PANE_MENU))); }
From source file:org.eclipse.che.selenium.pageobject.MultiSplitPanel.java
License:Open Source License
/** * wait process is not present into split pane widget * * @param nameProcess is name of process into the split pane widget *//* w w w . j a v a 2 s . c o m*/ public void waitProcessIsNotPresentIntoPaneMenu(String nameProcess) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC).until(ExpectedConditions .invisibilityOfElementLocated(By.xpath(String.format(Locators.SPLIT_PANE_COMMAND, nameProcess)))); }
From source file:org.eclipse.che.selenium.pageobject.MultiSplitPanel.java
License:Open Source License
/** * wait tab name of process is not present * * @param numberPanel is a position of split pane; the most right and lowest open pane has * position number one// ww w. j a v a 2 s. co m * @param nameProcess is tab name of process */ public void waitTabProcessIsNotPresent(int numberPanel, String nameProcess) { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated( By.xpath(String.format(Locators.TAB_PROCESS_NAME, numberPanel, nameProcess)))); }
From source file:org.eclipse.che.selenium.pageobject.RecentFiles.java
License:Open Source License
/** Close the 'Recent Files' window */ public void closeRecentFiles() { actionsFactory.createAction(seleniumWebDriver).sendKeys(Keys.ESCAPE).perform(); new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(Locators.RECENT_FILES))); }
From source file:org.eclipse.che.selenium.pageobject.RecentFiles.java
License:Open Source License
/** * Wait item by name is not present in the 'Recent Files' * * @param nameItem name of item/* w w w .java 2 s . c om*/ */ public void waitItemIsNotPresent(String nameItem) { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC).until(ExpectedConditions .invisibilityOfElementLocated(By.xpath(format(Locators.RECENT_FILES_ITEM, nameItem)))); }
From source file:org.eclipse.che.selenium.pageobject.subversion.SvnCommit.java
License:Open Source License
public void waitMainFormClosed() { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(Locators.COMMIT_MAIN_FORM))); }
From source file:org.eclipse.che.selenium.pageobject.subversion.SvnCopy.java
License:Open Source License
public void waitCopyFormClosed() { new WebDriverWait(seleniumWebDriver, ELEMENT_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(Locators.COPY_FORM))); }