public void doLogout() { // accessing tag name as workaround for permission denied to access property 'nr@context' issue PageElementUtils.permissionDeniedWorkAround(usernameOrEmailInput); if (userDropdownTriggerLink.isPresent()) { // only do the logout if the user drop down is present, i.e., if the user is logged in. userDropdownTriggerLink.click(); logoutLink.click(); } }
AddIssueTypeForm setSubtask(boolean subtask) { assertSubstasksEnabled(); if (subtask) { subtaskRadio.click(); } else { issueTypeRadio.click(); } return this; }
public EditUserDetailsPage setUserAsInactive() { if (getIsActiveUser()) { activeUser.click(); } return this; }
public EditIssueTypePage setAvatar(final String id) { avatarPickerTrigger.click(); final AvatarDialog avatarDialog = binder.bind(AvatarDialog.class, "project-avatar-picker"); avatarDialog.setAvatar(id); return this; }
public void doLogin(String username, String password) { // accessing tag name as workaround for permission denied to access property 'nr@context' issue PageElementUtils.permissionDeniedWorkAround(usernameOrEmailInput); usernameOrEmailInput.clear().type(username); passwordInput.clear().type(password); loginButton.click(); }
public T handleWebLoginIfRequired(String username, String password) { if (usernameField.isPresent()) { usernameField.type(username); passwordField.type(password); submitButton.click(); } return nextPage; }
void cancel() { cancelLink.click(); }
void submit() { addButton.click(); }
/** Regenerates account OAuth. */ public void regenerate() { regenerateLink.click(); }
public CopyWorkflowDialog openCopyDialog() { assertTrue("The workflow does not have a copy operation.", hasCopyOperation()); copyElement.click(); return pageBinder.bind(CopyWorkflowDialog.class, getName()); }
public ViewUserPage cancelUpdatePassword() { cancel.click(); return pageBinder.bind(ViewUserPage.class, username); }
public ViewIssueTypesPage submit() { submitButton.click(); return binder.bind(ViewIssueTypesPage.class); }
public void closeDialog() { container.click(); }
public SelectNotificationScheme cancel() { cancelButton.click(); return this; }
public <T extends Page> T submit(final Class<T> nextPage, String... arguments) { submit.click(); return binder.navigateToAndBind(nextPage, arguments); }
public ViewUserPage updatePassword() { update.click(); return pageBinder.bind(ViewUserPage.class, username); }
public ViewUserPage cancelEdit() { cancel.click(); return pageBinder.bind(ViewUserPage.class, username); }
@Override public <T> T cancel(Class<T> expectedPage, Object... args) { cancelLink.click(); return binder.bind(expectedPage, args); }
public ViewUserPage submit() { update.click(); return pageBinder.bind(ViewUserPage.class, username); }
public AddWorkflowDialog openAddWorkflowDialog() { addWorkflowLink.click(); return pageBinder.bind(AddWorkflowDialog.class); }
/** Refreshes repositories list of account. */ public void refresh() { refreshLink.click(); }