com.atlassian.webdriver.jira.page.user
Class UserBrowserPage
java.lang.Object
com.atlassian.webdriver.jira.page.JiraAbstractPage
com.atlassian.webdriver.jira.page.JiraAdminAbstractPage
com.atlassian.webdriver.jira.page.user.UserBrowserPage
- All Implemented Interfaces:
- Page
public class UserBrowserPage
- extends JiraAdminAbstractPage
Page object implementation for the User browser page in JIRA.
TODO: Handle pagination when there are more users
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserBrowserPage
public UserBrowserPage()
getUrl
public String getUrl()
- Returns:
- The URI, including query string, relative to the base url
init
public void init()
hasUser
public boolean hasUser(User user)
editUserGroups
public EditUserGroupsPage editUserGroups(User user)
- When editing a users groups from this page, EditUserGroups always returns back to
UserBrowser unless there was an error.
- Parameters:
user -
- Returns:
getUsersGroups
public Set<String> getUsersGroups(User user)
gotoViewUserPage
public ViewUserPage gotoViewUserPage(User user)
getNumberOfUsers
public int getNumberOfUsers()
filterByUserName
public UserBrowserPage filterByUserName(String username)
gotoAddUserPage
public AddUserPage gotoAddUserPage()
- navigates to the addUserPage by activating the add User link
- Returns:
addUser
public ViewUserPage addUser(User user,
boolean sendPasswordEmail)
- Takes User object and fills out the addUserPage form and creates the user.
- Parameters:
user - the user to createsendPasswordEmail - sets the send email tick box to on or off
- Returns:
- the user browser page which should have the new user added to the count.
Copyright © 2014 Atlassian. All rights reserved.