congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PageElement
Code IndexAdd Tabnine to your IDE (free)

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

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

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

  public void setUnreleasedFirst()
  {
    PageElement submitButton = body.find(By.id("config_version_type_order_config"));
    Poller.waitUntilTrue(submitButton.timed().isPresent());
    versionPrioritySelect.type(UNRELEASED_FIRST);
    submitButton.click();
  }
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

public UserProfileMacro(PageElement profileElement) {
  this.profileElement = profileElement;
  if (profileElement.find(By.className("vcard")).isPresent()) {
    PageElement usernameLink = profileElement.find(By.className("confluence-userlink"));
    PageElement emailLink = profileElement.find(By.className("email"));
    String username = usernameLink.getAttribute("data-username");
    String fullName = usernameLink.getText();
    String email = emailLink.isPresent() ? emailLink.getText() : "";
    this.user = new KnownUser(null, username, fullName, (UserKey) null);
    this.status = profileElement.find(By.className("user-status"));
  }
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

private void clickExpanderIfNecessary()
{
  final PageElement expander = row.find(By.className("aui-iconfont-collapsed"));
  if (expander.isVisible())
  {
    expander.click();
  }
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public void addGroup(final String name)
{
  addGroupNameField.clear().type(name);
  addGroupSubmit.click();
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public AdvancedSearch enterQuery(final String query)
{
  jqlInput.clear().type(query);
  return this;
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

@Override
public boolean isShowing()
{
  return webSudoBanner.isPresent() && webSudoBanner.isVisible();
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public AdvancedSearch openIssueNavigator()
{
  module.find(By.className("drop-menu")).click();
  waitUntilTrue(optionsDropDown.timed().isPresent());
  optionsDropDown.find(By.id("subtasks-open-issue-navigator")).click();
  return binder.bind(AdvancedSearch.class);
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public PreviewPanel(PageElement pageElement)
{
  PageElement descElement = pageElement.find(By.id("project-config-workflow-add-dialog-preview-desc"));
  this.description = descElement.isPresent() ? descElement.getText() : null;
  this.lastModifiedDate = pageElement.find(By.id("project-config-workflow-add-dialog-preview-last-modified-date")).getText();
  PageElement lastModifiedUserElement = pageElement.find(By.id("project-config-workflow-add-dialog-preview-last-modified-user"));
  this.lastModifiedUser = lastModifiedUserElement.isPresent() ? lastModifiedUserElement.getText() : null;
  PageElement nameElement = pageElement.find(By.className("project-config-workflow-add-dialog-preview-name"));
  this.workflowName = nameElement.isPresent() ? nameElement.getText() : null;
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

public ConfigureIssueTypeScreenSchemePage configure(final String issueTypeScreenSchemeName)
{
  final PageElement configureLink = issueTypeScreenSchemesTable.find(By.cssSelector(format(CONFIGURE_LINK_CSS_SELECTOR, issueTypeScreenSchemeName)));
  assertTrue("Attempted to configure an issue type screen scheme that is not present on the page", configureLink.isPresent());
  final String issueTypeScreenSchemeId = removeStart(configureLink.getAttribute("id"), "configure_issuetypescreenscheme_");
  configureLink.click();
  return pageBinder.bind(ConfigureIssueTypeScreenSchemePage.class, issueTypeScreenSchemeId);
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

public ExternalImagePanelImageBrowserDialog setExternalImage(String url) {
  Poller.waitUntilTrue(externalImageInput.timed().isVisible());
  externalImageInput.clear();
  externalImageInput.type(url);
  return this;
}
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 WatchersComponent addWatcher(String watcher) {
  if (watcherWithSearch.isPresent())
  {
    watchersMultiSelect.add(watcher);
  }
  else if (watchersNoSearch.isPresent())
  {
    watchersNoSearch.type(watcher).type(Keys.ENTER);
  }
  waitUntilTrue(watchersDialog.find(By.cssSelector("li[data-username=" + watcher + "]")).timed().isPresent());
  return this;
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

/**
 * Cancels the table picker dropdown if it is currently opened.
 */
public void cancelPicker() {
  if (!pickerBox.isVisible())
    return;
  pickerButton.click();
  Poller.waitUntilFalse(pickerBox.timed().isVisible());
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

  private PageElement openIssueActionsMenu()
  {
    PageElement issueActionsTrigger = issue.find(By.className("issue-actions-trigger"));

    // HACK: Button appears on mouseover, which fails in webdriver, so use javascript to make element appear and be clickable
    issueActionsTrigger.javascript().execute("AJS.$(arguments[0]).addClass('active');");
    Poller.waitUntilTrue("Issue actions trigger is not visible.", issueActionsTrigger.timed().isVisible());

    issueActionsTrigger.click();

    return finder.find(By.id("actions_" + id + "_drop"));
  }
}
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.jira/atlassian-jira-pageobjects

public void submit()
{
  dialogElement.find(By.className("app-role-defaults-dialog-submit-button")).click();
  Poller.waitUntilFalse(dialogElement.withTimeout(TimeoutType.AJAX_ACTION).timed().isPresent());
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

  /**
   * Wait until Insert File Dialog finish loading files.
   */
  public void waitUntilLoadedFiles() {
    PageElement loadingElement = attachedImages.find(By.className("loading-message"));
    if (loadingElement.isPresent() && loadingElement.isVisible()) {
      Poller.waitUntilFalse(loadingElement.timed().isVisible());
    }

    waitUntilTrue(panel.find(By.cssSelector("li.attached-file")).timed().isVisible());
  }
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

public void typeAndSetNewParentPage(final String newParentPage) {
  Poller.waitUntilTrue(newParentPageInput.timed().isVisible());
  newParentPageInput.clear();
  newParentPageInput.type(newParentPage);
  waitUntilTrue(newParentPageDropDown.timed().isVisible());
  // Using WebDriver in Chrome, if there is an error message in the dialog, clicking on the dropdown won't work. We need to send keys to the
  // input field in order to select the space from the dropdown.
  WebElement newPageInputWebElement = driver.findElement(By.id(newParentPageInput.getAttribute("id")));
  newPageInputWebElement.sendKeys(Keys.DOWN);
  newPageInputWebElement.sendKeys(Keys.ENTER);
  waitUntil(getBreadCrumbText(), containsString(newParentPage));
}
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.jira/atlassian-jira-pageobjects

public void removeTab()
{
  deleteTab.click();
  final DeleteTabDialog dialog = pageBinder.bind(DeleteTabDialog.class, deleteTab.getAttribute("data-tab"));
  dialog.submit();
  Poller.waitUntilFalse(table.timed().isPresent());
}
com.atlassian.pageobjects.elementsPageElement

Most used methods

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

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Permission (java.security)
    Legacy security code; do not use.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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