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

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

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

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

@Nonnull
@Override
protected PageElement getContent()
{
  return flag.getFlagElement().find(By.id("license-flag-content"));
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public Field(PageElement cell)
{
  super(cell);
  this.field = cell.find(By.tagName("input"));
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

@Override
protected PageElement getMacLink()
{
  return getContent().find(By.id("exceeded-banner-mac-link"));
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public int getActiveUsers()
{
  String userLimit = licenseTable.find(By.cssSelector("tr:nth-child(6) td:nth-child(2)")).getText();
  Pattern re = Pattern.compile("[(]([0-9]+) currently active[)]");
  Matcher m = re.matcher(userLimit);
  if (m.find())
  {
    String activeUSers = m.group(1);
    return Integer.valueOf(activeUSers);
  }
  return -1;
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

@Init
public void getElements()
{
  container = elementFinder.find(containerSelector, TimeoutType.AJAX_ACTION);
  field = container.find(By.tagName("input"));
  icon = container.find(By.className("icon"));
  label = container.find(By.className("overlabel-apply"));
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

  public JobRunnerRow hideDetails()
  {
    row.find(By.className("show-details")).click();
    return this;
  }
}
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 AuiMessage dismiss()
  {
    message.find(By.className("icon-close")).click();
    return this;
  }
}
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.jira/atlassian-jira-pageobjects

/**
 * Waits for at least one error to be visible
 * @return this
 */
public FormDialog waitForFormErrors()
{
  waitUntilTrue(form.find(By.tagName("div")).find(By.className("error")).timed().isVisible());
  return this;
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public SelectedIssue selectIssue(String issueKey)
{
  issuetable.find(By.cssSelector("tr[data-issuekey='" + issueKey + "']")).click();
  return getSelectedIssue();
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

protected TimedQuery<String> toggleSearchMode(final NavigatorMode toMode)
{
  final PageElement activeSwitcher = searchSwitcher.find(By.className("active"));
  if (!activeSwitcher.getAttribute("data-id").equals(toMode.toString()))
  {
    activeSwitcher.click();
  }
  return searchSwitcher.find(By.className("active")).timed().getAttribute("data-id");
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public AuiMessage getMessage(AuiMessage.Type type)
{
  final AuiMessage message = Iterables.getFirst(getMessagesOfType(type).now(), null);
  if (message != null)
  {
    return message;
  }
  else
  {
    return pageBinder.bind(AuiMessage.class, context.find(By.cssSelector(AuiMessages.auiMessageSelector(type))));
  }
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

  public SharedDashboardsPage sortBy(String fieldName) {
    PageElement columnHeader = finder.find(By.id("page_sort_" + fieldName));
    columnHeader.click();
    waitUntilTrue(columnHeader.find(By.tagName("img")).timed().isVisible());
    return this;
  }
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

  public SharedFiltersPage sortBy(String fieldName) {
    PageElement columnHeader = finder.find(By.id("filter_sort_"+fieldName));
    columnHeader.click();
    waitUntilTrue(columnHeader.find(By.tagName("img")).timed().isVisible());
    return this;
  }
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

/**
 * Close the dialog by clicking on the kindly ever-present cancel button.
 */
public void close()
{
  if (isOpen().now())
  {
    getDialogElement().find(By.className("cancel")).click();
  }
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public ViewProjectsPage change()
{
  dialog.find(By.className("dialog-change-button")).click();
  waitUntilFalse(dialog.timed().isVisible());
  return pageBinder.bind(ViewProjectsPage.class);
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public TimedQuery<Iterable<IssuePickerRow>> getIssueRows()
{
  return transformTimed(timeouts, pageBinder,
      extendedFinder.within(container.find(By.className("mod-content"))).newQuery(By.tagName("tr"))
          .filter(PageElements.hasClass("issue-picker-row"))
          .supplier(),
      IssuePickerRow.class);
}

com.atlassian.pageobjects.elementsPageElementfind

Popular methods of PageElement

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top plugins for WebStorm
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