예제 #1
0
  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;
  }
예제 #3
0
  public EditUserDetailsPage setUserAsInactive() {
    if (getIsActiveUser()) {
      activeUser.click();
    }

    return this;
  }
예제 #4
0
  public EditIssueTypePage setAvatar(final String id) {
    avatarPickerTrigger.click();
    final AvatarDialog avatarDialog = binder.bind(AvatarDialog.class, "project-avatar-picker");
    avatarDialog.setAvatar(id);

    return this;
  }
예제 #5
0
  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();
  }
예제 #6
0
 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();
 }
예제 #10
0
 public CopyWorkflowDialog openCopyDialog() {
   assertTrue("The workflow does not have a copy operation.", hasCopyOperation());
   copyElement.click();
   return pageBinder.bind(CopyWorkflowDialog.class, getName());
 }
예제 #11
0
 public ViewUserPage cancelUpdatePassword() {
   cancel.click();
   return pageBinder.bind(ViewUserPage.class, username);
 }
예제 #12
0
 public ViewIssueTypesPage submit() {
   submitButton.click();
   return binder.bind(ViewIssueTypesPage.class);
 }
예제 #13
0
 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);
 }
예제 #16
0
 public ViewUserPage updatePassword() {
   update.click();
   return pageBinder.bind(ViewUserPage.class, username);
 }
예제 #17
0
 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);
 }
예제 #19
0
 public ViewUserPage submit() {
   update.click();
   return pageBinder.bind(ViewUserPage.class, username);
 }
예제 #20
0
 public AddWorkflowDialog openAddWorkflowDialog() {
   addWorkflowLink.click();
   return pageBinder.bind(AddWorkflowDialog.class);
 }
 /** Refreshes repositories list of account. */
 public void refresh() {
   refreshLink.click();
 }