@Override public String apply(PageElement link) { return link.getAttribute("id"); } }));
public boolean isAddingAnIssueTypeToScreenSchemeAssociationDisabled() { return ("true").equals(addIssueTypeToScreenSchemeButton.getAttribute("aria-disabled")) && addIssueTypeToScreenSchemeButton.getAttribute("href") == null; }
public boolean isAddingAnIssueTypeToFieldConfigurationAssociationDisabled() { return "true".equals(addIssueTypeToFieldConfigurationButton.getAttribute("aria-disabled")) && addIssueTypeToFieldConfigurationButton.getAttribute("href") == null; }
public boolean isDraggable() { return element.getAttribute("draggable").equals("true"); } }
@Override public boolean apply(final PageElement dashboard) { final String tabName = dashboard.getAttribute("title"); return tabName.equals(dashboardName); } });
public int getIndex() { return Integer.valueOf(item.getAttribute("data-entry-index")); } }
@Override public boolean apply(@Nullable final PageElement pageElement) { return pageElement != null && pageElement.getAttribute("id").endsWith(suffix); } };
public CreateIssueDialog uncheckCreateMultiple() { final PageElement createAnother = find(By.id("qf-create-another")); final String checked = createAnother.getAttribute("checked"); if (checked != null && createAnother.getAttribute("checked").equals("true")) { createAnother.click(); } return this; }
public Iterable<String> getIssueKeys() { return issuetable.findAll(By.cssSelector(ISSUE_ROW_WITH_ISSUEKEY_SELECTOR)).stream() .map(el -> el.getAttribute(ISSUEKEY_ATTRIBUTE)) .collect(Collectors.toList()); } }
public Collection<String> getEffectiveApplications() { return createForm.findAll(SELECTOR_APPS_EFFECTIVE).stream() .map(element -> element.getAttribute("value")) .collect(CollectorsUtil.toImmutableList()); }
public List<String> getApplicationsWithWarning(){ return createForm.findAll(SELECTOR_APPS_WARNING).stream() .map(element -> element.getAttribute("data-key")) .collect(CollectorsUtil.toImmutableList()); }
public Collection<String> getSelectedApplications() { return createForm.findAll(SELECTOR_APPS_SELECTED).stream() .map(element -> element.getAttribute("value")) .collect(CollectorsUtil.toImmutableList()); }
public List<String> getCustomAvatars() { final List<String> result = Lists.newArrayList(); for(PageElement avatar : dialog.findAll(By.cssSelector("ul.jira-avatars li.jira-custom-avatar"))) { result.add(avatar.getAttribute("data-id")); } return result; }
public EditOutgoingMailServersPage editSmtpMailServer() { final String idAtt = editLink.getAttribute("id"); final long id = Long.parseLong(idAtt.split("_")[1]); editLink.click(); return pageBinder.bind(EditOutgoingMailServersPage.class, id); }
public List<String> getApplicationIds() { return applicationAccess().findAll(By.cssSelector(".application")).stream() .map(pageElement -> pageElement.getAttribute("data-key")) .collect(Collectors.toList()); }
public EditScreenTab addTabSuccess(String tabName) { addTab(tabName); final PageElement pageElement = elementFinder.find(By.cssSelector(".menu-item[data-name='" + tabName + "'].active-tab")); return pageBinder.bind(EditScreenTab.class, Long.parseLong(pageElement.getAttribute("data-tab"))); }
public EditScreenTab openTab(String tabName) { final PageElement pageElement = elementFinder.find(By.cssSelector(".menu-item[data-name='" + tabName + "']")).click(); Poller.waitUntilTrue(pageElement.timed().hasClass("active-tab")); return pageBinder.bind(EditScreenTab.class, Long.parseLong(pageElement.getAttribute("data-tab"))); }
private RoleGroup(PageElement row) { this.row = row; this.name = StringUtils.stripToNull(row.find(By.className("application-role-name-group-name")).getText()); this.userCount = Integer.parseInt(row.find(By.className("application-role-name-group-size"), TimeoutType.AJAX_ACTION).getAttribute("data-value")); this.labels = row.find(By.cssSelector("application-role-labels[resolved][updated]")); }
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"); }
public void removeTab() { deleteTab.click(); final DeleteTabDialog dialog = pageBinder.bind(DeleteTabDialog.class, deleteTab.getAttribute("data-tab")); dialog.submit(); Poller.waitUntilFalse(table.timed().isPresent()); }