public DatabaseSetupPage setExternalDb() { externalDbOption.select(); return this; }
private EditApplicationPropertiesPage setRadioOption(final boolean to, final PageElement enablingElement, final PageElement disablingElement) { final PageElement toggle = to ? enablingElement : disablingElement; toggle.select(); return this; }
public EditDetails markLabelsCheckbox() { cblabels.select(); return this; }
public EditUserDetailsPage setUserAsActive() { if (!getIsActiveUser()) { activeUser.select(); } return this; }
/** * Selects group by provided name. * * @param group * select name of group */ public void setGroup(String group) { groupType.select(); groupSingleSelect.select(group); }
public WhatsNewDialog checkDontShow() { if (!isDontShowChecked()) dontShowCheckbox.select(); return this; }
/** * 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(); }
public void chooseListOption(String name, String value) { // We may have more than one input field with the same name List<PageElement> varInputField = pageElementFinder.findAll(By.xpath( "//select[@name='variableValues." + name + "']/option[@value='" + value + "']")); varInputField.get(0).select(); }
private AddUserPage setCheckbox(final PageElement checkbox, final boolean state) { if (state) { checkbox.select(); } else if (checkbox.isSelected()) { checkbox.toggle(); } return this; }
private CopyPageHierarchyDialog setCheckboxChecked(PageElement checkbox, boolean checked) { if (checked) { checkbox.select(); } else { if (checkbox.isSelected()) { checkbox.toggle(); } } return this; } }
public SelectedItem selectRow() { rowElement.find(By.tagName("input")).select(); return this; }
public void setAlsoDeleteChildPages(boolean checked) { if (checked) { alsoDeleteChildrenCheckbox.select(); } else if (alsoDeleteChildrenCheckbox.isSelected()) { alsoDeleteChildrenCheckbox.toggle(); } }
public CopyDialog setIncludeChildrenChecked(boolean checked) { if (checked) { includeChildrenCheckbox.select(); } else { if (includeChildrenCheckbox.isSelected()) { includeChildrenCheckbox.toggle(); } } return this; }
public UserTemplateEditorPage clickWelcomeMessageEditButton() { welcomeMessage.select(); editWelcomeMessageButton.click(); return pageBinder.bind(UserTemplateEditorPage.class); }
public AddUserWithAppPermissionsPage setDevelopersGroup(final boolean value) { if (value) { developersGroup.select(); } else if (developersGroup.isSelected()) { developersGroup.toggle(); } return this; }
public EditDetails addFixVersions(String option, String fixVersion) { cbfixVersions.select(); selectFixVersionsOption(option); if (!fixVersion.isEmpty()) { versions.type(fixVersion).type(Keys.RETURN); } return this; }
public EditDetails addComponents(String option, String component) { cbcomponents.select(); selectComponentsOption(option); if (!component.isEmpty()) { components.type(component).type(Keys.RETURN); } return this; }
public String commentPullRequest(String comment) { commentElement.select(); Poller.waitUntilTrue(commentButton.timed().isVisible()); commentElement.type(comment); commentButton.click(); return comment; }