/** * @return the new parent page set in the advanced tab */ public String getNewParentPage() { return newParentPageInput.getValue(); }
/** * Returns the value of the search text. * * @return search text */ public String getSearchText() { return userQueryInput.getValue(); }
public String getPrefixValue() { return inputPrefix.getValue(); } }
/** * @return OAuth secret of this dialog. */ public String getSecret() { return secretField.getValue(); }
public String getIconUrl() { return iconUrlElement.getValue(); }
@Override public boolean apply(PageElement input) { return value.equals(input.getValue()); } };
public Long getSchemeId() { if (schemeIdElement.isPresent()) { return Long.valueOf(schemeIdElement.getValue()); } else { return null; } }
/** * @return The value of the address field in the web link panel * @since 5.8.0 */ public String getAddressField() { return find("#weblink-destination").getValue(); }
public Boolean isDraftMigration() { if (draftMigration.isPresent()) { return Boolean.valueOf(draftMigration.getValue()); } else { return null; } }
public SupportedApplication apply(PageElement element) { return SupportedApplication.valueOf(element.getValue()); } }));
public Long getProjectId() { if (projectIdElement.isPresent()) { return Long.valueOf(projectIdElement.getValue()); } else { return null; } }
public Long getProjectId() { if (projectIdElement.isPresent()) { return Long.valueOf(projectIdElement.getValue()); } else { return null; } }
public AddUserPage setSelectedApplications(final String... appKeys) { final ImmutableSet<String> appKeySet = Arrays.stream(appKeys).collect(CollectorsUtil.toImmutableSet()); createForm.findAll(SELECTOR_APPS) .forEach(element -> setCheckbox(element, appKeySet.contains(element.getValue()))); return this; }
public List<RepoNameId> getUnSyncedRepos() { return rootElement.findAll(By.cssSelector("select option")) .stream() .map(option -> new RepoNameId(option.getText(), Integer.parseInt(option.getValue()))) .collect(toList()); }
/** * @return Name of permission, which will be added. */ public String getPermissionName() { return permissionsSelect.find(By.xpath("option[@value = '" + permissionsSelect.getValue() + "']")).getText(); }
public IssuePickerPopup triggerSearchModeFilter(CharSequence filterOption) { triggerSearchModeFilter(); for (PageElement option : elementFinder.find(By.id("searchRequestId")).findAll(By.tagName("option"))) { if (option.getValue().contains(filterOption)) { option.click(); } } return this; }
public UserPickerPopup select(User user) { List<PageElement> all = searchResults.findAll(By.name("userSelect")); for (PageElement el : all) { if (user.getUsername().equals(el.getValue())) el.click(); } return this; }
public GroupPickerPopup select(Group group) { List<PageElement> all = searchResults.findAll(By.name("group")); for (PageElement el : all) { if (group.getName().equals(el.getValue())) el.click(); } return this; }
private void typeInLabelsInput(String label) { waitUntilTrue("Labels input field should be visible", labelsInput.timed().isVisible()); labelsInput.click().clear().type(label); if (!label.equals(labelsInput.getValue())) { labelsInput.click().clear().type(label); } waitUntilTrue("Labels input field should have new label", labelsInput.timed().hasValue(label)); }
public void select(UiOAuthConfig config) { waitUntilTrue(isDropdownVisible()); while (!getInputText().getValue().equals("")) { getInputText().type(Keys.BACK_SPACE); } getInputText().type(config.typingText()); getInputText().type(Keys.RETURN); waitUntilTrue(isSelected(config)); }