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.UploadFolderFromZip.java
License:Open Source License
public void waitUploadFormIsClosed() { new WebDriverWait(seleniumWebDriver, 5) .until(ExpectedConditions.invisibilityOfElementLocated(By.xpath(Locators.UPLOAD_FOLDER_ZIP_FORM))); }
From source file:org.eclipse.che.selenium.pageobject.WarningDialog.java
License:Open Source License
/** wait closing a warning dialog */ public void waitWaitClosingWarnDialogWindow() { new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.WARNING_DIALOG_ID))); }
From source file:org.eclipse.che.selenium.pageobject.Wizard.java
License:Open Source License
/** wait wizard form is closed */ public void waitCreateProjectWizardFormIsClosed() { new WebDriverWait(seleniumWebDriver, LOADER_TIMEOUT_SEC) .until(ExpectedConditions.invisibilityOfElementLocated(By.id(Locators.CREATE_PROJECT_WIZARD))); }
From source file:org.kurento.room.test.RoomTest.java
License:Open Source License
protected void waitWhileElement(String label, WebDriver browser, String id) throws TimeoutException { try {/*from www .j a v a 2 s. c om*/ (new WebDriverWait(browser, TEST_TIMEOUT, FIND_LATENCY)) .until(ExpectedConditions.invisibilityOfElementLocated(By.id(id))); } catch (org.openqa.selenium.TimeoutException e) { log.warn("Timeout when waiting for element {} to disappear in browser {}", id, label, e); throw new TimeoutException( "Element with id='" + id + "' is present in page after " + TEST_TIMEOUT + " seconds"); } }
From source file:org.nuxeo.functionaltests.dam.AssetCreationFancyBoxFragment.java
License:Open Source License
public void cancel() { cancelButton.click();/*from ww w .ja v a 2s .c om*/ // make sure the fancybox content is not loaded anymore WebDriverWait wait = new WebDriverWait(driver, AbstractTest.LOAD_TIMEOUT_SECONDS); wait.until(ExpectedConditions.invisibilityOfElementLocated(By.id("fancybox-content"))); }
From source file:org.openecomp.sdc.ci.tests.pages.OpsOperationPage.java
License:Open Source License
public static void clickRefreshTableButton(int rowIndex) { // SetupCDTest.getExtendTest().log(LogStatus.INFO, "refreshing // distribution table"); GeneralUIUtils.getWebElementWaitForVisible("refreshButton").click(); // wait until total artifacts field disappear WebDriverWait wait = new WebDriverWait(GeneralUIUtils.getDriver(), 30); wait.until(ExpectedConditions.invisibilityOfElementLocated( By.xpath("//*[@data-tests-id='" + "totalArtifacts_" + String.valueOf(rowIndex) + "']"))); }
From source file:org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils.java
License:Open Source License
public static Boolean waitForInvisibileElement(String dataTestId) { WebDriverWait wait = new WebDriverWait(driver, 3 * 60); return wait.until(ExpectedConditions .invisibilityOfElementLocated(By.xpath("//*[@data-tests-id='" + dataTestId + "']"))); }
From source file:org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils.java
License:Open Source License
public static boolean waitForElementsListInvisibility(By by) { WebDriverWait wait = new WebDriverWait(driver, 3 * 60); return wait.until(ExpectedConditions.invisibilityOfElementLocated(by)); }
From source file:org.openecomp.sdc.ci.tests.utilities.GeneralUIUtils.java
License:Open Source License
public static Boolean waitForElementInVisibilityByClassName(WebDriver driver, String className) { WebDriverWait wait = new WebDriverWait(driver, 30); return wait.until(ExpectedConditions.invisibilityOfElementLocated(By.className(className))); }
From source file:org.opennms.smoketest.AdminSnmpConfigForIpPageIT.java
License:Open Source License
/** * Tests that only one "version specifics" area is visible at the time. *//*from www .j a v a 2 s . c o m*/ @Test public void testVersionHandling() { new Select(findElementByName("version")).selectByVisibleText("v1"); wait.until(ExpectedConditions .visibilityOfElementLocated(By.xpath("//h3[text()='v1/v2c specific parameters']"))); wait.until( ExpectedConditions.invisibilityOfElementLocated(By.xpath("//h3[text()='v3 specific parameters']"))); new Select(findElementByName("version")).selectByVisibleText("v2c"); wait.until(ExpectedConditions .visibilityOfElementLocated(By.xpath("//h3[text()='v1/v2c specific parameters']"))); wait.until( ExpectedConditions.invisibilityOfElementLocated(By.xpath("//h3[text()='v3 specific parameters']"))); // change to v3 new Select(findElementByName("version")).selectByVisibleText("v3"); wait.until(ExpectedConditions .invisibilityOfElementLocated(By.xpath("//h3[text()='v1/v2c specific parameters']"))); wait.until( ExpectedConditions.visibilityOfElementLocated(By.xpath("//h3[text()='v3 specific parameters']"))); }