com.atlassian.webdriver.jira.page.user
Class EditUserGroupsPage

java.lang.Object
  extended by com.atlassian.webdriver.jira.page.JiraAbstractPage
      extended by com.atlassian.webdriver.jira.page.JiraAdminAbstractPage
          extended by com.atlassian.webdriver.jira.page.user.EditUserGroupsPage
All Implemented Interfaces:
Page

public class EditUserGroupsPage
extends JiraAdminAbstractPage

Page object implementation for the edit user's group page in JIRA.

Since:
2.0

Field Summary
 
Fields inherited from class com.atlassian.webdriver.jira.page.JiraAbstractPage
driver, pageBinder
 
Constructor Summary
EditUserGroupsPage()
           
 
Method Summary
<T extends Page>
T
addToGroupsAndReturnToPage(Class<T> pageClass, String... groups)
          Add to groups either redirects the user to another page or returns the user to the EditUserGroupsPage.
 EditUserGroupsPage addToGroupsExpectingError(String... groups)
           
 String getUrl()
           
 boolean hasError(String errorStr)
           
 boolean hasErrors()
           
 void parsePage()
           
<T extends Page>
T
removeFromGroupsAndReturnToPage(Class<T> pageClass, String... groups)
           
 EditUserGroupsPage removeFromGroupsExpectingError(String... groups)
           
 ViewUserPage returnToUserView()
           
 
Methods inherited from class com.atlassian.webdriver.jira.page.JiraAdminAbstractPage
getAdminSideMenu
 
Methods inherited from class com.atlassian.webdriver.jira.page.JiraAbstractPage
doWait, getDashboardMenu, getHeader, isAdmin, isLoggedIn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditUserGroupsPage

public EditUserGroupsPage()
Method Detail

getUrl

public String getUrl()
Returns:
The URI, including query string, relative to the base url

parsePage

public void parsePage()

hasErrors

public boolean hasErrors()

hasError

public boolean hasError(String errorStr)

returnToUserView

public ViewUserPage returnToUserView()

addToGroupsAndReturnToPage

public <T extends Page> T addToGroupsAndReturnToPage(Class<T> pageClass,
                                                     String... groups)
Add to groups either redirects the user to another page or returns the user to the EditUserGroupsPage.

Parameters:
groups -
Returns:

addToGroupsExpectingError

public EditUserGroupsPage addToGroupsExpectingError(String... groups)

removeFromGroupsAndReturnToPage

public <T extends Page> T removeFromGroupsAndReturnToPage(Class<T> pageClass,
                                                          String... groups)

removeFromGroupsExpectingError

public EditUserGroupsPage removeFromGroupsExpectingError(String... groups)


Copyright © 2014 Atlassian. All rights reserved.