/** * Check that the JIRA Dialog has been closed. */ public TimedQuery<Boolean> isClosed() { // JIRA Dialogs get removed from the DOM when they are closed. return not(isInDOM()); }
public TimedQuery<Boolean> isClosed() { return Conditions.not(isOpen()); }
public TimedQuery<Boolean> isClosed() { return Conditions.not(popupWindow.isOpen()); }
public TimedQuery<Boolean> isEditButtonVisible() { // You'd think isVisible would do it, but no, we have to check for this ridiculously confusing class. No idea why. return Conditions.not(editButton.timed().hasClass("assistive")); }
public TimedQuery<Boolean> isPreviewButtonVisible() { // You'd think isVisible would do it, but no, we have to check for this ridiculously confusing class. No idea why. return Conditions.not(previewButton.timed().hasClass("assistive")); }
public TimedCondition isUndoEnabled() { return (TimedCondition) not(undoButton.timed().hasClass("disabled")); }
public TimedQuery<Boolean> isHiddenAndNotAnimated() { return Conditions.dependantCondition(Conditions.not(isVisible()), this::isNotAnimated); }
public TimedQuery<Boolean> isLoaded() { return Conditions.and(contentAreaIsVisible(), isEditButtonVisible(), Conditions.not(isPreviewButtonVisible()), //CONFSRVDEV-5874: The Close button will be enable in preview if content type is page/blogpost //isCloseLinkDisabled(), Conditions.not(isSpinnerVisible())); }
@Override public TimedCondition isAt() { return and(of(editorElement.timed().isPresent(), not(editorElement.timed().hasClass("workflowscheme-editor-loading")))); }
@Override public TimedCondition isAt() { //Wait until the table finishes loading. final TimedElement element = root.timed(); return Conditions.and(element.isPresent(), Conditions.not(element.hasClass("loading"))); }
public void waitUntilLoadComplete() { waitUntilTrue(not(getDropdown().timed().hasClass("aui-dropdown2-loading"))); }
/** * @since 2.13.0 */ public TimedQuery<Boolean> isClickableTimed(Content page) { return not(getPageTreeLi(page) .withTimeout(UI_ACTION) .timed() .hasClass("unclickable")); }
private PageElement waitFor(PageElement userList) { Poller.waitUntilTrue(Conditions.not(userList.find(By.cssSelector(".loading")).timed().isVisible())); return userList; } }
public TimedQuery<Boolean> isCloseLinkDisabled() { return Conditions.and(closeLink.timed().isPresent(), Conditions.not(closeLink.timed().isEnabled())); }
public void waitUntilFinishedLoading() { final PageElement trobber = find(By.className("throbber")); if (!trobber.isPresent()) { throw new RuntimeException("Loading indicator not present."); } waitUntilTrue(and(isOpen(), not(trobber.timed().hasClass("loading")))); }
@Override public TimedCondition isAt() { return Conditions.and(jwdElement.timed().isPresent(), Conditions.not(progressIndicatorBlanket.timed().isPresent()), getWorkflowHeader().isPresentCondition(workflowName)); }
@Override public AdvancedApplicationProperty revert() { waitUntilTrue("Tried to revert application property, but revert button could not be found", Conditions.and(revert.timed().isPresent(), Conditions.not(isLoading()))); revert.click(); waitUntilFalse(isLoading()); return this; }
private UserWatcherPicker selectUser(User user) { By userLocator = By.cssSelector("a[href$='" + user.getUsername() + "']"); waitUntilTrue("User <" + user.getUsername() + "> was not found in the results", results.find(userLocator).timed().isVisible()); results.find(userLocator).click(); waitUntilTrue(Conditions.not(results.find(By.cssSelector(".aui-dropdown")).timed().isVisible())); waitUntilTrue(Conditions.not(statusBar.timed().hasClass("loading"))); return this; }