public class

UserBrowserPage

extends AbstractJiraAdminPage
java.lang.Object
   ↳ com.atlassian.jira.pageobjects.pages.AbstractJiraPage
     ↳ com.atlassian.jira.pageobjects.pages.AbstractJiraAdminPage
       ↳ com.atlassian.jira.pageobjects.pages.admin.user.UserBrowserPage

Class Overview

Admin user browser.

Summary

Nested Classes
class UserBrowserPage.UserRow Encapsulates single row in the user browser. 
Fields
public static String FILTER_ANY_APPLICATION_ACCESS
public static String FILTER_NO_APPLICATION_ACCESS
protected PageElement addUserLink
protected ExtendedElementFinder extendedFinder
protected SelectElement filterApplicationsSelect
protected WebElement filterSubmit
protected WebElement filterUsersByUserSearch
protected SelectElement filterUsersPerPage
protected SingleSelect groupFilter
protected PageElement numUsers
protected PageElement pagination
protected Iterable<PageElement> userRows
protected PageElement userTable
[Expand]
Inherited Fields
From class com.atlassian.jira.pageobjects.pages.AbstractJiraPage
Public Constructors
UserBrowserPage()
UserBrowserPage(String filteredApplicationKey)
Public Methods
UserBrowserPage addUser(User user, boolean sendPasswordEmail)
Takes User object, fills out the addUserPage form and creates the user.
UserBrowserPage clearFilterByUserSearch()
EditUserGroupsPage editUserGroups(User user)
This method is deprecated. use findRow(com.atlassian.jira.pageobjects.global.User) instead
UserBrowserPage filterByApplication(String application)
@Deprecated UserBrowserPage filterByEmail(String email)
This method is deprecated. Not available in UI anymore, does not filter by username only, internally calls filterByEmail(String)
UserBrowserPage filterByGroup(String groupName)
@Deprecated UserBrowserPage filterByUserName(String username)
This method is deprecated. Not available in UI anymore, does not filter by username only, internally calls filterByUserSearch(String)
UserBrowserPage filterByUserSearch(String usersearch)
String filteredApplication()
UserBrowserPage.UserRow findRow(User user)
Find row for given user
UserBrowserPage.UserRow findRow(String userName)
Find row for given userName
String getApplicationFilter()
int getNumberOfUsers()
TimedQuery<String> getPaginationText()
String getUrl()
List<String> getUserNames()
List<String> getUserNames(boolean focused)
Iterable<UserBrowserPage.UserRow> getUserRows()
TimedQuery<Iterable<UserBrowserPage.UserRow>> getUserRowsTimed()
AddUserPage gotoAddUserPage()
Navigates to the addUserPage by activating the add User link
UserBrowserPage gotoResultPage(int page)
@Deprecated ViewUserPage gotoViewUserPage(User user)
This method is deprecated. use findRow(com.atlassian.jira.pageobjects.global.User) instead
TimedCondition hasApplicationFilter()
boolean hasRow(User user)
void init()
TimedCondition isAt()
Timed condition checking if we're at given page.
TimedCondition isMultipleUsersCreatedFlagVisible()
TimedCondition isUserCreatedFlagVisible(String username)
String linkId()
ID of the link in the admin menu.
UserBrowserPage setUserFilterTo10Users()
UserBrowserPage setUserFilterToShowAllUsers()
[Expand]
Inherited Methods
From class com.atlassian.jira.pageobjects.pages.AbstractJiraAdminPage
From class com.atlassian.jira.pageobjects.pages.AbstractJiraPage
From class java.lang.Object
From interface com.atlassian.pageobjects.Page

Fields

public static String FILTER_ANY_APPLICATION_ACCESS

public static String FILTER_NO_APPLICATION_ACCESS

protected PageElement addUserLink

protected ExtendedElementFinder extendedFinder

protected SelectElement filterApplicationsSelect

protected WebElement filterSubmit

protected WebElement filterUsersByUserSearch

protected SelectElement filterUsersPerPage

protected SingleSelect groupFilter

protected PageElement numUsers

protected PageElement pagination

protected Iterable<PageElement> userRows

protected PageElement userTable

Public Constructors

public UserBrowserPage ()

public UserBrowserPage (String filteredApplicationKey)

Public Methods

public UserBrowserPage addUser (User user, boolean sendPasswordEmail)

Takes User object, fills out the addUserPage form and creates the user.

Parameters
user the user to create
sendPasswordEmail 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.

public UserBrowserPage clearFilterByUserSearch ()

public EditUserGroupsPage editUserGroups (User user)

This method is deprecated.
use findRow(com.atlassian.jira.pageobjects.global.User) instead

When editing a users groups from this page, EditUserGroups always returns back to UserBrowser unless there was an error.

Parameters
user user to edit
Returns
  • edit user groups page instance

public UserBrowserPage filterByApplication (String application)

@Deprecated public UserBrowserPage filterByEmail (String email)

This method is deprecated.
Not available in UI anymore, does not filter by username only, internally calls filterByEmail(String)

public UserBrowserPage filterByGroup (String groupName)

@Deprecated public UserBrowserPage filterByUserName (String username)

This method is deprecated.
Not available in UI anymore, does not filter by username only, internally calls filterByUserSearch(String)

public UserBrowserPage filterByUserSearch (String usersearch)

public String filteredApplication ()

public UserBrowserPage.UserRow findRow (User user)

Find row for given user

Parameters
user user to find
Returns
  • user row
Throws
NoSuchElementException if no user row found for given user (use hasRow(com.atlassian.jira.pageobjects.global.User) to check)

public UserBrowserPage.UserRow findRow (String userName)

Find row for given userName

Parameters
userName user to find
Returns
  • user row
Throws
NoSuchElementException if no user row found for given user (use hasRow(com.atlassian.jira.pageobjects.global.User) to check)

public String getApplicationFilter ()

public int getNumberOfUsers ()

public TimedQuery<String> getPaginationText ()

public String getUrl ()

public List<String> getUserNames ()

public List<String> getUserNames (boolean focused)

public Iterable<UserBrowserPage.UserRow> getUserRows ()

public TimedQuery<Iterable<UserBrowserPage.UserRow>> getUserRowsTimed ()

public AddUserPage gotoAddUserPage ()

Navigates to the addUserPage by activating the add User link

Returns
  • add user page

public UserBrowserPage gotoResultPage (int page)

@Deprecated public ViewUserPage gotoViewUserPage (User user)

This method is deprecated.
use findRow(com.atlassian.jira.pageobjects.global.User) instead

Parameters
user user
Returns
  • view page

public TimedCondition hasApplicationFilter ()

public boolean hasRow (User user)

public void init ()

public TimedCondition isAt ()

Timed condition checking if we're at given page.

Returns
  • timed condition checking, if the test is at given page

public TimedCondition isMultipleUsersCreatedFlagVisible ()

public TimedCondition isUserCreatedFlagVisible (String username)

public String linkId ()

ID of the link in the admin menu.

Returns
  • ID of the link to this page

public UserBrowserPage setUserFilterTo10Users ()

public UserBrowserPage setUserFilterToShowAllUsers ()