@Override public boolean apply(PageElement input) { return input.isVisible(); } };
@Override public Boolean get() { return !healthStatusLoadingSpinner.isVisible(); } }), CoreMatchers.is(true), Poller.by(30, TimeUnit.SECONDS));
@Override public boolean isShowing() { return webSudoBanner.isPresent() && webSudoBanner.isVisible(); }
/** * @return True if this account is Integrated account. */ public boolean isIntegratedAccount() { return onDemandDecorator.isPresent() && onDemandDecorator.isVisible() && onDemandDecorator.getAttribute("title").equalsIgnoreCase("Integrated account"); }
public boolean canDelete() { final PageElement element = getDeleteElement(); return element.isPresent() && element.isVisible(); }
public Set<String> getWarningWorkflows() { Set<String> workflows = Sets.newHashSet(); for (IssueTypeEntry issueType : getIssueTypes()) { if (issueType.getWarningIcon().isVisible()) { workflows.add(issueType.getAssignedWorkflow()); } } return workflows; }
public boolean canAssign() { final PageElement assignElement = getAssignElement(); return assignElement.isPresent() && assignElement.isVisible(); }
public ListApplicationLinkPage close() { PageElement closeLink = dialog.find(By.cssSelector("a.applinks-cancel-link")); if (!closeLink.isVisible()) { throw new IllegalStateException("the link for closing the orphaned trust relationship dialog is not visible to the user"); } closeLink.click(); return nextPage; } }
public void confirm() { PageElement deleteButton = orphanedTrustDialog.find(By.cssSelector("button.wizard-submit")); if (!deleteButton.isVisible()) { throw new IllegalStateException("delete button in the delete orphaned trust relationship dialog is not visible to the user"); } deleteButton.click(); } }
public TimedCondition isVisibleTimed() { // Some dialogs can do things like WRM.require() / other AJAX-y stuff, which blocks their display. return Conditions.forSupplier(timeouts.timeoutFor(TimeoutType.SLOW_PAGE_LOAD), () -> getDialog().isPresent() && getDialog().isVisible() && (!confluenceLoadingIndicator.isPresent() || !confluenceLoadingIndicator.isVisible()) && (!confluenceLoadingBlanket.isPresent() || !confluenceLoadingBlanket.isVisible())); }
public void dismiss() { if (flagElement.isVisible()) { flagElement.find(By.className("icon-close")).click(); } }
private void clickExpanderIfNecessary() { final PageElement expander = row.find(By.className("aui-iconfont-collapsed")); if (expander.isVisible()) { expander.click(); } }
@Override public Boolean get() { actions.moveToElement(row).perform(); return row.find(By.className("attachment-delete")).isVisible(); } }));
public boolean isDisablingOutgoing2LOSuggestionMessagePresent() { Poller.waitUntilTrue(outgoingTwoLOFooterDiv.timed() .isPresent()); return suggestDisablingTwoLODiv.isPresent() && suggestDisablingTwoLODiv.isVisible(); }
public TimedQuery<Boolean> hasMacroPlaceholder(final String macroName) { return execute.queryOnTinyMceIFrame(() -> { final PageElement pageElement = page.find(By.cssSelector("[data-macro-name='" + macroName + "']")); return pageElement.isPresent() && pageElement.isVisible(); }); }
/** * Opens the table picker dropdown if it is currently closed. */ public void activatePicker() { if (pickerBox.isVisible()) return; pickerButton.click(); Poller.waitUntilTrue(pickerBox.timed().isVisible()); }
public void openCreateIssue() { if (!summaryField.isVisible()) { createIssueButton.click(); } Poller.waitUntilTrue(Conditions.and( issueTypeIcons.timed().isPresent(), // Wait for issue types to load summaryField.timed().isVisible() )); }
public TimedCondition isVisibleTimed() { // Dialog2 has visibility set to hidden on its container, so need to assert the dialog content is visible instead return Conditions.forSupplier(timeouts.timeoutFor(TimeoutType.SLOW_PAGE_LOAD), () -> getDialog().isPresent() && getDialog().find(By.className(CONTENT_CLASSNAME)).isVisible()); } }
/** * Wait until Insert File Dialog finish loading files. */ public void waitUntilLoadedFiles() { PageElement loadingElement = attachedImages.find(By.className("loading-message")); if (loadingElement.isPresent() && loadingElement.isVisible()) { Poller.waitUntilFalse(loadingElement.timed().isVisible()); } waitUntilTrue(panel.find(By.cssSelector("li.attached-file")).timed().isVisible()); } }