List of usage examples for org.openqa.selenium.support.ui ExpectedConditions visibilityOf
public static ExpectedCondition<WebElement> visibilityOf(final WebElement element)
From source file:com.cognifide.qa.bb.aem.ui.AemContentFinder.java
License:Apache License
/** * Expand contentFinder if it is not already expanded. * * @return This AemContentFinder instance. *//* w w w.ja v a 2 s .c o m*/ public AemContentFinder expand() { if (isCollapsed()) { bobcatWait.withTimeout(Timeouts.MEDIUM).until(ContentFinderActions.expand()); bobcatWait.withTimeout(Timeouts.MEDIUM).until(ExpectedConditions.visibilityOf(collapseButton)); } return this; }
From source file:com.cognifide.qa.bb.aem.ui.parsys.AemInsertWindow.java
License:Apache License
/** * Waits for the window to be displayed. * * @return This AemInsertWindow//ww w.j a va 2 s . c o m */ public AemInsertWindow waitToBeDisplayed() { wait.withTimeout(Timeouts.MEDIUM).until(ExpectedConditions.visibilityOf(currentScope)); return this; }
From source file:com.cognifide.qa.bb.aem.ui.parsys.AemParsys.java
License:Apache License
public void waitToBeReady() { wait.withTimeout(Timeouts.MEDIUM).until(ExpectedConditions.visibilityOf(insertComponentArea)); }
From source file:com.cognifide.qa.bb.aem.ui.parsys.AemParsys.java
License:Apache License
/** * Simply check if any component with a specific css class name is in parsys. Do not use it with * negation, because of performance issues. In such cases use {#link isComponentNotPresent}. * * @param cssClassName component css class * @return true if component is present/*from w w w . j av a2s. co m*/ */ public boolean isComponentPresent(String cssClassName) { try { wait.withTimeout(Timeouts.SMALL).until( ExpectedConditions.visibilityOf(currentScope.findElement(getComponentLocator(cssClassName)))); return true; } catch (NoSuchElementException e) { LOG.debug(String.format("component located by: %s is not present", cssClassName), e); return false; } }
From source file:com.cognifide.qa.bb.aem.ui.sidekick.AemSidekick.java
License:Apache License
/** * Waits for the launch status to be visible in sidekick * * @return launch status message/*from w w w. j ava 2 s. co m*/ */ public String getLaunchStatusMessage() { bobcatWait.withTimeout(Timeouts.MEDIUM).until(ExpectedConditions.visibilityOf(launchStatus)); return launchStatus.getText(); }
From source file:com.cognifide.qa.bb.aem.ui.wcm.elements.SiteAdminActionBar.java
License:Apache License
/** * Waits for the ActionBar to be displayed. * * @return this SiteadminActionBar/*from ww w . j a v a 2s.com*/ */ public SiteAdminActionBar waitToBeDisplayed() { bobcatWait.withTimeout(Timeouts.BIG).until(ExpectedConditions.visibilityOf(currentScope)); return this; }
From source file:com.cognifide.qa.bb.aem.ui.wcm.windows.ActivateReferencesWindow.java
License:Apache License
/** * Waits for the window to be displayed. * * @return this ActivateReferencesWindow *//* w w w . j a v a 2s. co m*/ public ActivateReferencesWindow waitToBeDisplayed() { bobcatWait.withTimeout(Timeouts.MEDIUM).until(ExpectedConditions.visibilityOf(currentScope)); return this; }
From source file:com.cognifide.qa.bb.aem.ui.wcm.windows.CreatePageWindow.java
License:Apache License
/** * Waits for the window to be displayed. * * @return this CreatePageWindow/* w w w . ja va2 s . c o m*/ */ public CreatePageWindow waitToBeDisplayed() { bobcatWait.withTimeout(Timeouts.BIG).until(ExpectedConditions.visibilityOf(currentWindow)); return this; }
From source file:com.cognifide.qa.bb.aem.ui.wcm.windows.CreateSiteWindow.java
License:Apache License
/** * Waits for the window to be displayed. * * @return this CreateSiteWindow/*from w w w .j a v a 2s . c o m*/ */ public CreateSiteWindow waitToBeDisplayed() { bobcatWait.withTimeout(Timeouts.BIG).until(ExpectedConditions.visibilityOf(currentWindow)); return this; }
From source file:com.cognifide.qa.bb.aem.ui.wcm.windows.MovePageWindow.java
License:Apache License
/** * Waits for the window to be displayed. * * @return This MovePageWindow//ww w . j av a 2s. c o m */ public MovePageWindow waitToBeDisplayed() { bobcatWait.withTimeout(Timeouts.BIG).until(ExpectedConditions.visibilityOf(currentScope)); return this; }