public class UserBrowserPage extends AbstractJiraAdminPage
Modifier and Type | Class and Description |
---|---|
static class |
UserBrowserPage.UserRow
Encapsulates single row in the user browser.
|
Modifier and Type | Field and Description |
---|---|
protected com.atlassian.pageobjects.elements.SelectElement |
activeUsersSelect |
protected com.atlassian.pageobjects.elements.PageElement |
addUserLink |
protected ExtendedElementFinder |
extendedFinder |
static String |
FILTER_ANY_APPLICATION_ACCESS |
static String |
FILTER_NO_APPLICATION_ACCESS |
protected com.atlassian.pageobjects.elements.SelectElement |
filterApplicationsSelect |
protected org.openqa.selenium.WebElement |
filterSubmit |
protected org.openqa.selenium.WebElement |
filterUsersByUserSearch |
protected com.atlassian.pageobjects.elements.SelectElement |
filterUsersPerPage |
protected SingleSelect |
groupFilter |
protected com.atlassian.pageobjects.elements.PageElement |
numUsers |
protected com.atlassian.pageobjects.elements.PageElement |
pagination |
protected Iterable<com.atlassian.pageobjects.elements.PageElement> |
userRows |
protected com.atlassian.pageobjects.elements.PageElement |
userTable |
body, driver, elementFinder, metaElement, pageBinder, timeouts
Constructor and Description |
---|
UserBrowserPage() |
UserBrowserPage(String filteredApplicationKey) |
Modifier and Type | Method and Description |
---|---|
UserBrowserPage |
addUser(User user,
boolean sendPasswordEmail)
Takes User object, fills out the addUserPage form and creates the user.
|
UserBrowserPage |
clearFilterByUserSearch() |
EditUserGroupsPage |
editUserGroups(User user)
Deprecated.
|
UserBrowserPage |
filterByActive(String active) |
UserBrowserPage |
filterByApplication(String application) |
UserBrowserPage |
filterByEmail(String email)
Deprecated.
Not available in UI anymore, does not filter by username only, internally calls
filterByEmail(java.lang.String) |
UserBrowserPage |
filterByGroup(String groupName) |
UserBrowserPage |
filterByUserName(String username)
Deprecated.
Not available in UI anymore, does not filter by username only, internally calls
filterByUserSearch(java.lang.String) |
UserBrowserPage |
filterByUserSearch(String usersearch) |
String |
filteredApplication() |
UserBrowserPage.UserRow |
findRow(String userName)
Find row for given userName
|
UserBrowserPage.UserRow |
findRow(User user)
Find row for given user
|
String |
getApplicationFilter() |
int |
getNumberOfUsers() |
com.atlassian.pageobjects.elements.query.TimedQuery<String> |
getPaginationText() |
String |
getUrl() |
List<String> |
getUserNames() |
List<String> |
getUserNames(boolean focused) |
Iterable<UserBrowserPage.UserRow> |
getUserRows() |
com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<UserBrowserPage.UserRow>> |
getUserRowsTimed() |
AddUserPage |
gotoAddUserPage()
Navigates to the addUserPage by activating the add User link
|
UserBrowserPage |
gotoResultPage(int page) |
ViewUserPage |
gotoViewUserPage(User user)
Deprecated.
|
com.atlassian.pageobjects.elements.query.TimedCondition |
hasApplicationFilter() |
boolean |
hasRow(User user) |
void |
init() |
com.atlassian.pageobjects.elements.query.TimedCondition |
isAt()
Timed condition checking if we're at given page.
|
com.atlassian.pageobjects.elements.query.TimedCondition |
isMultipleUsersCreatedFlagVisible() |
com.atlassian.pageobjects.elements.query.TimedCondition |
isUserCreatedFlagVisible(String username) |
String |
linkId()
ID of the link in the admin menu.
|
UserBrowserPage |
setUserFilterTo10Users() |
UserBrowserPage |
setUserFilterToShowAllUsers() |
back, doWait, execKeyboardShortcut, getHeader, getPageTitle, getXsrfToken, isAdmin, isLoggedIn
public static String FILTER_ANY_APPLICATION_ACCESS
public static String FILTER_NO_APPLICATION_ACCESS
@Inject protected ExtendedElementFinder extendedFinder
protected org.openqa.selenium.WebElement filterSubmit
protected com.atlassian.pageobjects.elements.PageElement addUserLink
protected com.atlassian.pageobjects.elements.PageElement numUsers
protected com.atlassian.pageobjects.elements.PageElement pagination
protected com.atlassian.pageobjects.elements.PageElement userTable
protected org.openqa.selenium.WebElement filterUsersByUserSearch
protected com.atlassian.pageobjects.elements.SelectElement activeUsersSelect
protected com.atlassian.pageobjects.elements.SelectElement filterApplicationsSelect
protected com.atlassian.pageobjects.elements.SelectElement filterUsersPerPage
protected Iterable<com.atlassian.pageobjects.elements.PageElement> userRows
protected SingleSelect groupFilter
public UserBrowserPage()
public UserBrowserPage(String filteredApplicationKey)
public void init()
public String getUrl()
public com.atlassian.pageobjects.elements.query.TimedCondition isAt()
AbstractJiraPage
isAt
in class AbstractJiraPage
public EditUserGroupsPage editUserGroups(User user)
findRow(com.atlassian.jira.pageobjects.global.User)
insteaduser
- user to edit@Deprecated public ViewUserPage gotoViewUserPage(User user)
findRow(com.atlassian.jira.pageobjects.global.User)
insteaduser
- userpublic int getNumberOfUsers()
public UserBrowserPage gotoResultPage(int page)
public com.atlassian.pageobjects.elements.query.TimedQuery<String> getPaginationText()
public AddUserPage gotoAddUserPage()
public UserBrowserPage addUser(User user, boolean sendPasswordEmail)
user
- the user to createsendPasswordEmail
- sets the send email tick box to on or offpublic UserBrowserPage filterByUserSearch(String usersearch)
public UserBrowserPage clearFilterByUserSearch()
public com.atlassian.pageobjects.elements.query.TimedCondition isUserCreatedFlagVisible(String username)
public com.atlassian.pageobjects.elements.query.TimedCondition isMultipleUsersCreatedFlagVisible()
@Deprecated public UserBrowserPage filterByUserName(String username)
filterByUserSearch(java.lang.String)
@Deprecated public UserBrowserPage filterByEmail(String email)
filterByEmail(java.lang.String)
public UserBrowserPage setUserFilterToShowAllUsers()
public UserBrowserPage filterByApplication(String application)
public UserBrowserPage filterByActive(String active)
public UserBrowserPage filterByGroup(String groupName)
public String filteredApplication()
public String getApplicationFilter()
public UserBrowserPage setUserFilterTo10Users()
public Iterable<UserBrowserPage.UserRow> getUserRows()
public com.atlassian.pageobjects.elements.query.TimedQuery<Iterable<UserBrowserPage.UserRow>> getUserRowsTimed()
public boolean hasRow(User user)
public UserBrowserPage.UserRow findRow(User user)
user
- user to findNoSuchElementException
- if no user row found for given user (use
hasRow(com.atlassian.jira.pageobjects.global.User)
to check)public UserBrowserPage.UserRow findRow(String userName)
userName
- user to findNoSuchElementException
- if no user row found for given user (use
hasRow(com.atlassian.jira.pageobjects.global.User)
to check)public String linkId()
AbstractJiraAdminPage
linkId
in class AbstractJiraAdminPage
public com.atlassian.pageobjects.elements.query.TimedCondition hasApplicationFilter()
Copyright © 2002-2019 Atlassian. All Rights Reserved.