Tabnine Logo
PageElement.isPresent
Code IndexAdd Tabnine to your IDE (free)

How to use
isPresent
method
in
com.atlassian.pageobjects.elements.PageElement

Best Java code snippets using com.atlassian.pageobjects.elements.PageElement.isPresent (Showing top 20 results out of 315)

origin: com.atlassian.jira/atlassian-jira-pageobjects

/**
 * Does it have a X that when clicked dismisses message
 *
 * @return if closeable or not
 */
public boolean isCloseable()
{
  return this.flagElement.find(By.className("icon-close")).isPresent();
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

/**
 * Does it have a X that when clicked dismisses message
 *
 * @return if closeable or not
 */
public boolean isCloseable()
{
  return message.find(By.className("icon-close")).isPresent();
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public String getSelectedScheme()
{
  if (select.isPresent())
  {
    return schemeSelect.getSelected().text();
  }
  else
  {
    return null;
  }
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

/**
 * Does it have a X that when clicked dismisses message
 *
 * @return if closeable or not
 */
public boolean isCloseable() {
  return this.flagElement.find(By.className("icon-close")).isPresent();
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

/**
 * Does it have a X that when clicked dismisses message
 *
 * @return if closeable or not
 */
public boolean isCloseable() {
  return this.flagElement.find(By.className("icon-close")).isPresent();
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public Workflow getWorkflow(final String workflow)
{
  final PageElement pageElement = editorElement.find(cssSelector(format("tr[data-workflow-name='%s']", escapeForCss(workflow))));
  if (!pageElement.isPresent())
  {
    throw new IllegalArgumentException(format("Can't find workflow '%s' in the scheme.", workflow));
  }
  return new Workflow(pageElement);
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

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()));
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

  public EditIssueTypeSchemePage reset()
  {
    assertTrue("Reset button is not present.", submitReset.isPresent());
    submitReset.click();

    return pageBinder.bind(EditIssueTypeSchemePage.class);
  }
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

@Override
public String getDescription()
{
  PageElement description = row.find(By.className("application-property-description"));
  return description.isPresent() ? description.getText() : null;
}
origin: com.atlassian.applinks/applinks-pageobjects

  public boolean sharedUserBaseIsPresent() {
    // wait until the admin checkbox is visible, then check for the shared userbase one.
    Poller.waitUntilTrue(isAdminCheckBox.timed().isVisible());
    return sharedUserbaseCheckBox.isPresent();
  }
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

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();
  });
}
origin: com.atlassian.applinks/applinks-pageobjects

public ApplicationDetailsSection configureApplicationLink(String linkUrl) {
  waitUntilTrue(isApplinksListFullyLoaded());
  PageElement row = elementFinder.find(By.id("ual-row-" + linkUrl));
  if (!row.isPresent()) {
    throw new IllegalStateException("cannot configure app that doesn't exist:[" + linkUrl + "]");
  }
  row.find(By.className("app-edit-link")).click();
  waitUntilTrue(editApplicationLinkDialog.timed().isVisible());
  return pageBinder.bind(ApplicationDetailsSection.class);
}
origin: com.atlassian.applinks/applinks-pageobjects

public CreateNonUalDialog clickContinueExpectingAnError() throws Exception {
  Poller.waitUntilTrue(continueButton.timed().isVisible());
  if ((createIncomingCheckBox.isPresent() && createIncomingCheckBox.isSelected())) {
    throw new Exception("For incoming links use clickContinueToCreateNonUalIncomingLink instead");
  }
  continueButton.click();
  Poller.waitUntilTrue(continueButton.timed().isVisible());
  return this;
}
origin: com.atlassian.applinks/applinks-pageobjects

public PauseDialog clickContinueToCreateNonUalLink() throws Exception {
  Poller.waitUntilTrue(continueButton.timed().isVisible());
  if ((createIncomingCheckBox.isPresent() && createIncomingCheckBox.isSelected())) {
    throw new Exception("For incoming links use clickContinueToCreateNonUalIncomingLink instead");
  }
  continueButton.click();
  Poller.waitUntilFalse(continueButton.timed().isVisible());
  return pageBinder.bind(PauseDialog.class);
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

  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());
  }
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public ViewIssuePage submit()
{
  linkIssueDialog.clickLinkButton();
  if (linkIssueDialog.isOpen().now() && locator.find(By.name("atl_token_retry_button")).isPresent())
  {
    linkIssueDialog.submit(By.name("atl_token_retry_button"));
  }
  return linkIssueDialog.bindViewIssuePage();
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

  @Override
  public FieldScreenItem apply(final PageElement pageElement)
  {
    final String fieldConfigName = pageElement.find(By.className("field-screen-name")).getText();
    String fieldDescriptionName = "";
    if (pageElement.find(By.className("field-screen-description")).isPresent())
    {
      fieldDescriptionName = pageElement.find(By.className("field-screen-description")).getText();
    }
    return new FieldScreenItem(fieldConfigName, fieldDescriptionName);
  }
}));
origin: com.atlassian.jira/atlassian-jira-pageobjects

  @Override
  public FieldConfigurationItem apply(final PageElement pageElement)
  {
    final String fieldConfigName = pageElement.find(By.cssSelector("[data-scheme-field='name']")).getText();
    String fieldDescriptionName = "";
    if (pageElement.find(By.cssSelector("[data-scheme-field='description']")).isPresent())
    {
      fieldDescriptionName = pageElement.find(By.cssSelector("[data-scheme-field='description']")).getText();
    }
    return new FieldConfigurationItem(fieldConfigName, fieldDescriptionName);
  }
}));
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

/**
 * 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");
  }
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

/**
 * For Confluence 5.8 or later, this will return the tooltip of the restrictions icon in the page metadata next to
 * the breadcrumbs. For pre-5.8, this will return the visible text on the restrictions button in the page footer.
 */
public TimedCondition hasRestrictionsButtonText(String text) {
  waitUntilTrue(restrictionsButton.timed().isVisible());
  if (restrictionsButton.find(By.className("trigger-text")).isPresent()) {
    return restrictionsButton.find(By.className("trigger-text")).timed().hasText(text);
  } else {
    return restrictionsButton.timed().hasAttribute("data-tooltip", text);
  }
}
com.atlassian.pageobjects.elementsPageElementisPresent

Popular methods of PageElement

  • timed
  • click
  • getAttribute
  • find
  • getText
  • javascript
  • type
  • isVisible
  • clear
  • getValue
  • findAll
  • isSelected
  • findAll,
  • isSelected,
  • select,
  • withTimeout,
  • hasAttribute,
  • hasClass,
  • getSize,
  • getTagName,
  • isEnabled

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Table (org.hibernate.mapping)
    A relational table
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now