Tabnine Logo
ByJquery.$
Code IndexAdd Tabnine to your IDE (free)

How to use
$
method
in
com.atlassian.webdriver.utils.by.ByJquery

Best Java code snippets using com.atlassian.webdriver.utils.by.ByJquery.$ (Showing top 20 results out of 315)

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

@Init
public void readAttachmentSettings()
{
  By colLocator = ByJquery.$("td ~ td");
  List<WebElement> attachSettingsRows = attachmentSettingsTable.findElements(By.tagName("tr"));
  attachmentsEnabled = attachSettingsRows.get(0).findElement(colLocator).getText().equals(ENABLED);
  attachmentPath = parseAttachmentPath(attachSettingsRows.get(1).findElement(colLocator).getText());
  attachmentSize = attachSettingsRows.get(2).findElement(colLocator).getText();
  thumnailsEnabled = attachSettingsRows.get(3).findElement(colLocator).getText().equals(ENABLED);
  zipSupportEnabled = attachSettingsRows.get(4).findElement(colLocator).getText().equals(ENABLED);
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

@Init
public void initialize() {
  final ByJquery locator = ByJquery.$("meta[name='ajs-enabled-dark-features']");
  if (!driver.elementExists(locator)) {
    enabledFeatures = ImmutableSet.of();
    return;
  }
  final WebElement element = driver.findElement(locator);
  String content = element.getAttribute("content");
  enabledFeatures = ImmutableSet.copyOf(content.split(","));
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

public List<String> getErrorMessages() {
  //#all-messages is the container that is visible when an error message is shown
  //there seems to be two ".error li" elements, but the other one is not visible
  List<WebElement> errorElements = driver.findElements(ByJquery.$("#all-messages .aui-message-error li"));
  return Lists.transform(errorElements, innerText());
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

/**
 * Chooses an existing issue type scheme to associate with the currently selected project
 * @param scheme The new issue type scheme name
 */
public void chooseExistingIssueTypeScheme(final String scheme)
{
  chooseSchemeRadioOption.select();
  schemeSelect.find(ByJquery.$("option:contains(\"" + scheme + "\")")).select();
  submit.click();
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

public void selectedAttachment(Content attachment) {
  Preconditions.checkArgument(ContentType.ATTACHMENT.equals(attachment.getType()));
  By locator = ByJquery.$("#attachments-table .title-field:contains(\"" + attachment.getTitle() + "\")");
  getDialog().find(locator).click();
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

/**
 * Waits until the quick search dropdown is visible
 *
 * @since 5.8.0
 */
@SuppressWarnings("WeakerAccess")
public void waitForQuickSearchToBeVisible() {
  By locator = ByJquery.$(".aui-dd-parent.autocomplete .aui-dropdown:visible");
  waitUntilTrue("Quick search is open", getDialog().find(locator).timed().isPresent());
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

/**
 * Clicks on a result in the recently viewed panel by link text and content type
 *
 * @since 5.8.0
 */
public void clickRecentlyViewedResult(final String linkText, final String contentType) {
  final String cssClass = "blog".equals(contentType) ? "blogpost" : contentType;
  recentlyViewedResults.find(ByJquery.$(".content-type-" + cssClass + ":contains(\"" + linkText + "\")")).click();
}
origin: com.atlassian.jira/atlassian-jira-pageobjects

private WebElement getIssueTypeListItemFromSelectedOptions(String sourceIssueType)
{
  return selectedOptionsWebElement
      .findElement(ByJquery.$("li:contains(\"" + sourceIssueType + "\")"));
}
origin: com.atlassian.selenium/atlassian-webdriver-jira

@Init
public void initialise()
{
  dashboardMenu = pageBinder.bind(AuiDropdownMenu.class, ByJquery.$("#home_link").parent("li"));
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

/**
 * Mouse-hover over the user icon and wait for the AUI dialog to appear
 */
public UserHoverPopup openUserHoverPopup(String username) {
  waitForJsBindingsIfNeeded();
  PageElement userLogo = finder.find(By.cssSelector(String.format(".userLogoLink[data-username='%s']", username)));
  actions.moveToElement(userLogo);
  actions.perform();
  // Here we are finding the popup element by finding a .ajs-content-hover element where the child a has data-username= provided username.
  PageElement popupElement = finder.find(ByJquery.$(".ajs-content-hover a[data-username='" + username + "']").closest(".ajs-content-hover"));
  return pageBinder.bind(UserHoverPopup.class, popupElement);
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

  public WebElement getPageItem(Content page) {
    Preconditions.checkArgument(ContentType.PAGE.equals(page.getType()));
    return driver.findElement(ByJquery.$("#pages-pane .favourite-pages-section .page-list-item .page-name:contains(\"" + page.getTitle() + "\")"));
  }
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

/**
 * Check isVisible when inline comment was visibled, support timed to make sure page has enough time to render that inline comment
 *
 * @param inlineCommentIndex zero based index of inline comment that need to check
 * @return TimedQuery with true if the comment is visible within the timeout.
 */
public TimedQuery<Boolean> isInlineCommentVisible(int inlineCommentIndex) {
  return pageContent.find(ByJquery.$(".inline-comment-marker.valid:eq(" + inlineCommentIndex + ")")).timed().isVisible();
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

  public boolean isServerPresent(String serverName) {
    // don't be having server names with quotes in 'em
    return mailServerTable.findElement(ByJquery.$("td:contains('" + serverName + "')")).isDisplayed();
  }
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

public PagePropertiesReportMacro clickSort(String columnHeading) {
  PageElement header = summaryTable.find(ByJquery.$("th:contains(" + columnHeading + ")"));
  waitUntilTrue("Column is not sortable: [" + columnHeading + "]", header.timed().hasClass("tablesorter-header"));
  header.click();
  return this;
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

public AuiFlag clickFavouriteButtonAndExpectErrorContains(String errorMessageExcerpt) {
  webdriverUtils.scrollToElementWithOffset(favouriteButton, 150);
  favouriteButton.click();
  AuiFlag flag = pageBinder.bind(AuiFlag.class, ByJquery.$(".aui-flag.aui-flag-stack-top-item"));
  waitUntilTrue(flag.isVisible());
  assertThat(flag.getFlagElement().getText(), containsString(errorMessageExcerpt));
  return flag;
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

  public SpaceExportTree getExportTree() {
    driver.waitUntilElementIsVisible(ByJquery.$("#exportContentTree"));
    return pageBinder.bind(SpaceExportTree.class);
  }
}
origin: com.atlassian.selenium/atlassian-webdriver-confluence

@Init
public void initialise()
{
  browseMenu = pageBinder.bind(AjsDropdownMenu.class, ByJquery.$("#browse-menu-link").parent("li"));
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

  private List<PageElement> getTemplatesForBlueprint(ItContentBlueprint blueprint) {
    return pluginTemplatesTable.findAll(
        ByJquery.$(getBlueprintTableSelector(blueprint.getModuleKey()) + " tr[" + BLUEPRINT_TEMPLATE_KEY_ATTRIBUTE + "]"));
  }
}
origin: com.atlassian.confluence/confluence-webdriver-pageobjects

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

public TimedCondition isUserInstalledPluginListed(String pluginFriendlyName) {
  Poller.waitUntilTrue(upmUserInstalledContainer.timed().isVisible());
  String jquerySelector = String.format("h4.upm-plugin-name:contains(%s)", pluginFriendlyName);
  return upmUserInstalledContainer.find(ByJquery.$(jquerySelector)).timed().isPresent();
}
com.atlassian.webdriver.utils.byByJquery$

Popular methods of ByJquery

  • parent
  • siblings
  • children
  • find
  • parents
  • $findElements
  • <init>
  • addSelector
  • closest
  • executeClassNameMatcher
  • executeIdMatcher
  • executeMatcher
  • executeIdMatcher,
  • executeMatcher,
  • executeSimpleSelector,
  • executeTagNameMatcher,
  • findElements,
  • fixSelector,
  • isSimpleSelector,
  • loadJqueryLocator,
  • prev

Popular in Java

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JLabel (javax.swing)
  • JPanel (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Github Copilot alternatives
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