/** * @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 isInviteLinkVisible() { return inviteLink.timed().isVisible().by(timeouts.timeoutFor(TimeoutType.PAGE_LOAD)); }
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); }
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); }
/** * @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))); }
/** * @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 ViewPage clickReorder() { if (!reorderButton.timed().isPresent().by(timeouts.timeoutFor(AJAX_ACTION))) { Assert.fail("cannot locate the reorder submit button - ensure that you have previously checked the 'reorder' checkbox"); } reorderButton.click(); waitUntilHidden(); return pageBinder.bind(ViewPage.class); }
public String getReorderPanelInformationMessage() { if (!reorderPanelInformationMessageDiv.timed().isPresent().by(timeouts.timeoutFor(AJAX_ACTION))) { fail("did not get to the reorder panel"); } return reorderPanelInformationMessageDiv.timed().getText().by(timeouts.timeoutFor(AJAX_ACTION)); }
/** * @return the attachment filename for this embedded image, or none() if it's not an attachment image. */ public Option<String> getAttachmentName() { return execute.onTinyMceIFrame(() -> { final Boolean isExternal = image.timed() .hasClass(EXTERNAL_RESOURCE_CLASS) .by(timeouts.timeoutFor(TimeoutType.COMPONENT_LOAD)); return isExternal ? Option.<String>none() : Option.option(image.timed() .getAttribute("data-linked-resource-default-alias") .by(timeouts.timeoutFor(TimeoutType.COMPONENT_LOAD))); }); } }
private CreateSpaceDialog handleWelcomeSpaceDialog() { final PageElement startCreatingSpace = finder.find(By.cssSelector("#space-welcome-dialog .start-creating-space")); if (startCreatingSpace.timed().isPresent().by(2, TimeUnit.SECONDS)) { waitUntilTrue(startCreatingSpace.timed().isVisible()); waitUntilTrue(startCreatingSpace.timed().isEnabled()); startCreatingSpace.click(); } return product.getPageBinder().bind(CreateSpaceDialog.class); }