@Override public TimedQuery<String> getText() { return container.timed().getText(); }
public TimedQuery<String> getProjectTypeName() { return projectTypeName.timed().getText(); } }
/** * Gets text of message * * @return text of message */ public TimedQuery<String> getMessage () { return message.timed().getText(); }
@Override public TimedQuery<String> getText() { return listElement.timed().getText(); }
/** * @since 2.10 */ public TimedQuery<String> getErrorMessageText() { return errorMessageContainer.timed().getText(); }
/** * @since 2.10 */ public TimedQuery<String> getConfirmationMessageText() { return adminBodyContent.timed().getText(); }
/** * @since 2.6.0 */ public TimedQuery<String> suggestionsActiveItemText() { return suggestionsActiveItem().timed().getText(); }
/** * @since 2.11 */ public TimedQuery<String> getSpaceHomePageTitle() { return homepageLink().timed().getText(); }
@Override public TimedCondition isAt() { return Conditions.and(pre.timed().isPresent(), Conditions.forMatcher(pre.timed().getText(), Matchers.containsString(String.format("\"name\":\"%s\"", username)))); }
@Override public TimedCondition isAt() { final PageElement warningMessage = content.find(By.className("warning")); return Conditions.forMatcher(warningMessage.timed().getText(), Matchers.containsString(expectedMessage)); }
/** * @return the display name of the page creator */ public TimedQuery<String> getCreator() { return pageMetadataModificationInfo.find(By.className("author")).timed().getText(); } }
/** * Retrieves the display name of the last modifier of the page * * @return The display name of the last modifier. This will be null if the page has not been modified */ public TimedQuery<String> getLastModifier() { return pageMetadataModificationInfo.find(By.className("editor")).timed().getText(); }
/** * @deprecated since 2.13 Use {@link #getSelectedPageTitleTimed()} */ @Deprecated public String getSelectedPageTitle() { return treeContainer.find(By.cssSelector("li a.highlighted")) .timed() .getText() .by(timeouts.timeoutFor(COMPONENT_LOAD)); }
/** * @since 2.13.0 */ public TimedQuery<String> getSelectedPageTitleTimed() { return treeContainer.find(By.cssSelector("li a.highlighted")) .withTimeout(UI_ACTION) .timed() .getText(); }
@SuppressWarnings("unchecked") @WaitUntil public void waitForPage() { // similar to an existing page => displays an AUI message final TimedCondition similarPageCondition = Conditions.forMatcher(pageElementFinder.find(By.cssSelector("#content .aui-message .title")).timed().getText(), CASE_INSENSITIVE_NOT_FOUND_TITLE_MATCHER); // not similar to an existing page => displays title element final TimedCondition notFoundCondition = Conditions.forMatcher(pageElementFinder.find(By.id("title-text")).timed().getText(), CASE_INSENSITIVE_NOT_FOUND_TITLE_MATCHER); waitUntilTrue(Conditions.or(notFoundCondition, similarPageCondition)); }
public ViewPage goToIndexPageAndCheckContent(Space space, String expectedIndexPageTitle, Content... expectedListedPages) { Content indexPage = getIndexPage(space, expectedIndexPageTitle); ViewPage indexPageView = product.viewPage(indexPage); assertThat("Incorrect index page title", indexPageView.getTitle(), is(expectedIndexPageTitle)); waitUntil("Index page content did not contain expected page titles", indexPageView.getMainContent().timed().getText(), listedPageTitlesMatcher(expectedListedPages)); return indexPageView; }
/** * Wait for a macro with a body to be rendered */ public void waitForMacroBody(final String macroName, final String body) { execute.onTinyMceIFrame(() -> { PageElement macroElement = page.find(By.cssSelector(".wysiwyg-macro[data-macro-name=\"" + macroName + "\"] " + ".wysiwyg-macro-body")); waitUntilTrue(macroElement.timed().isPresent()); waitUntilEquals(body, macroElement.timed().getText()); return null; }); }
public AuiFlag clickFavouriteButtonAndExpectError(String errorMessage) { webdriverUtils.scrollToElementWithOffset(favouriteButton, 150); favouriteButton.click(); AuiFlag flag = pageBinder.bind(AuiFlag.class, ByJquery.$(".aui-flag.aui-flag-stack-top-item")); waitUntilTrue(flag.isVisible()); waitUntilEquals(errorMessage, flag.getFlagElement().timed().getText()); return flag; }
@Override public TimedCondition isAt() { TimedCondition dialogTitleStartsWithDeleteLink = Conditions.forMatcher(elementFinder.find(By.className("dialog-title")).timed().getText(), Matchers.startsWith("Delete Link:")); return Conditions.or(dialogTitleStartsWithDeleteLink, elementFinder.find(By.className("form-body")).timed().isPresent()); }
/** * For Confluence 5.8 or later, this will return the tooltip of the labels icon in the page metadata next to the * breadcrumbs. For pre-5.8, this will return the visible text on the labels button in the page footer. */ public TimedQuery<String> getLabelsButtonText() { waitUntilTrue(labelsButton.timed().isVisible()); if (labelsButton.find(By.className("trigger-text")).isPresent()) { return labelsButton.find(By.className("trigger-text")).timed().getText(); } else { return labelsButton.timed().getAttribute("data-tooltip"); } }