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.GitHub.java
License:Open Source License
/** wait for disappearing Revoke button in applications menu. */ public void waitRevokeBtnDisappear() { new WebDriverWait(seleniumWebDriver, 30) .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(Locators.REVOKE_BTN))); }
From source file:org.eclipse.che.selenium.pageobject.GitHub.java
License:Open Source License
/** wait for disappearing of delete button in ssh keys menu. */ public void waitDeleteButtonDisappear() { new WebDriverWait(seleniumWebDriver, 30).until(ExpectedConditions.invisibilityOfElementLocated( By.xpath(String.format(Locators.DELETE_SSH_KEY_BTN, testUser.getName())))); }
From source file:org.eclipse.che.selenium.pageobject.GoogleLogin.java
License:Open Source License
public void waitCloseForm() { new WebDriverWait(seleniumWebDriver, 10) .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.LOGIN_FORM))); }
From source file:org.eclipse.che.selenium.pageobject.IdeMainDockPanel.java
License:Open Source License
public void runCommandFromCreateIconList(String createMenuCommand) { (new WebDriverWait(seleniumWebDriver, 7) .until(ExpectedConditions.presenceOfElementLocated(By.id(createMenuCommand)))).click(); new WebDriverWait(seleniumWebDriver, 3) .until(ExpectedConditions.invisibilityOfElementLocated(By.id(createMenuCommand))); }
From source file:org.eclipse.che.selenium.pageobject.ImportProjectFromLocation.java
License:Open Source License
/** wait while all elements of the form appear */ public void waitMainFormIsClosed() { new WebDriverWait(seleniumWebDriver, PREPARING_WS_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.MAIN_FORM_ID))); }
From source file:org.eclipse.che.selenium.pageobject.intelligent.CommandsExplorer.java
License:Open Source License
public void waitCommandExplorerIsClosed() { new WebDriverWait(seleniumWebDriver, REDRAW_UI_ELEMENTS_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(Locators.MAIN_FORM))); }
From source file:org.eclipse.che.selenium.pageobject.intelligent.CommandsExplorer.java
License:Open Source License
public void waitRemoveCommandFromExplorerByName(String commandName) { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC).until(ExpectedConditions .invisibilityOfElementLocated(By.xpath("//div[@id='command_" + commandName + "']"))); }
From source file:org.eclipse.che.selenium.pageobject.intelligent.CommandsExplorer.java
License:Open Source License
public void checkCommandIsNotPresentInGoal(String goalName, String commandName) { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath( "//div[@id='goal_" + goalName + "']/parent::div//div[@id='command_" + commandName + "']"))); }
From source file:org.eclipse.che.selenium.pageobject.intelligent.CommandsPalette.java
License:Open Source License
public void closeCommandPalette() { redrawUiElementTimeout.until(ExpectedConditions.visibilityOf(closeCommandPalette)).click(); redrawUiElementTimeout//from w ww . j av a 2 s . c o m .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(Locators.COMMAND_PALETTE))); loader.waitOnClosed(); }
From source file:org.eclipse.che.selenium.pageobject.intelligent.CommandsPalette.java
License:Open Source License
public void commandIsNotExists(String commandName) { redrawUiElementTimeout.until( ExpectedConditions.invisibilityOfElementLocated(By.xpath(format(Locators.COMMANDS, commandName)))); }