@Override public boolean matchesSafely(S item) { return item.isActive().now(); }
public boolean viewPermissionAddedToDialog(String username) { return hasPermissionForEntity(username, OperationKey.READ).byDefaultTimeout(); }
/** * @deprecated since 2.13 Use {@link #isClickableTimed(Content)} */ @Deprecated public boolean isClickable(Content page) { return !getPageTreeLi(page) .timed() .hasClass("unclickable") .by(timeouts.timeoutFor(UI_ACTION)); }
/** * @return false if the button is disabled, true if the button is enabled */ public boolean getSendInvitationsButtonStatus() { return sendInvitationsButton.timed().isEnabled().by(timeouts.timeoutFor(TimeoutType.PAGE_LOAD)); }
public boolean shortcutHasAction(String description, String action) { return jsQueryFactory.forBooleanJavascript( "return AJS.$('.item-description:contains(\"" + description + "\")').siblings('.item-action').text() === '" + action + "'").now(); }
public boolean isInviteLinkVisible() { return inviteLink.timed().isVisible().by(timeouts.timeoutFor(TimeoutType.PAGE_LOAD)); }
public boolean editPermissionAddedToDialog(String username) { return hasPermissionForEntity(username, OperationKey.UPDATE).byDefaultTimeout(); }
public boolean isVisible() { return isVisibleTimed().now(); }
public RemoteCloseDialogPage openKey(String expectedNamespace) { open("dialog-open-button-key"); String dialogId = driver.executeScript("return document.querySelector('.ap-aui-dialog2').getAttribute('id')").toString(); if (!elementFinder.find(By.id(dialogId)).timed().isPresent().by(REMOTE_DIALOG_WAIT_MS)) { throw new NoSuchElementException("Couldn't find dialog with id " + dialogId + " in " + REMOTE_DIALOG_WAIT_MS + "ms"); } return pageBinder.bind(RemoteCloseDialogPage.class, dialogId); }
public boolean isRoleSelected(final String roleKey) { return applicationAccess().isApplicationSelected(roleKey).byDefaultTimeout(); }
public boolean isConfigured() { return isConfiguredTimed().now(); }
/** * @return true if the property panel for border toggling is set to ON (that is, image should have a border) */ public boolean isBorderToggleOn() { return propertyPanelElement.find(IMAGE_BORDER_TOGGLE_BUTTON) .timed() .hasClass("selected") .by(timeouts.timeoutFor(TimeoutType.COMPONENT_LOAD)); } }
public UserApplicationAccess toggleApplication(final String applicationKey, boolean checked) { final TimedCondition isSelected = applicationCheckbox(applicationKey).timed().isSelected(); if ((checked && !isSelected.byDefaultTimeout()) || (!checked && isSelected.byDefaultTimeout())) { toggleApplication(applicationKey); } return this; } }
public boolean errorMessageVisibleImmediately() { return errorMessageVisible().now(); }
public RemoteCloseDialogPage openKey(String expectedNamespace) { open("dialog-open-button-key"); String dialogId = jsExecutor.executeScript("return document.querySelector('.ap-aui-dialog2').getAttribute('id')").toString(); if (!elementFinder.find(By.id(dialogId)).timed().isPresent().by(REMOTE_DIALOG_WAIT_MS)) { throw new NoSuchElementException("Couldn't find dialog with id " + dialogId + " in " + REMOTE_DIALOG_WAIT_MS + "ms"); } return pageBinder.bind(RemoteCloseDialogPage.class, dialogId); }
@Init public void init() { summaryContainer.timed().isVisible().byDefaultTimeout(); submitButton.timed().isVisible().byDefaultTimeout(); submitButton.timed().isEnabled().byDefaultTimeout(); }
public boolean isNotConfigured() { return isNotConfiguredTimed().now(); }
/** * @return true if this embedded image has a border applied to it */ public boolean isBordered() { return execute.onTinyMceIFrame(() -> image.timed() .hasClass(EMBEDDED_IMAGE_BORDER_CLASS) .by(timeouts.timeoutFor(TimeoutType.COMPONENT_LOAD))); }
@Init public void init() { registrationForm.timed().isVisible().byDefaultTimeout(); }
private void checkIsOpen(String windowName) { stateTrue("Window '" + windowName + "' is not open", isWindowOpen(windowName).now()); }