|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware com.atlassian.jira.webtest.selenium.harness.util.NavigatorImpl
public class NavigatorImpl
Field Summary |
---|
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware |
---|
assertThat, client, context, timeouts |
Constructor Summary | |
---|---|
NavigatorImpl(SeleniumContext ctx)
|
Method Summary | |
---|---|
void |
browseProject(String projectKey)
Goes to the browse page for the project with the given key. |
BulkChangeWizard |
bulkChange(IssueNavigatorNavigation.BulkChangeOption bulkChangeOption)
Initiate the bulk change wizard on the current search results. |
Navigator |
click(String id)
|
Navigator |
clickAndWaitForPageLoad(String id)
Click and wait for the page to load |
Navigator |
collapseContentSection(String sectionId)
Collapses a particular expanded content session in the content pane of the issuenavigator |
String |
createIssue(String projectName,
String issueType,
String summary)
Creates an issue in the database |
Dashboard |
currentDashboard()
Goes to the dashboard action which will navigate to the most recent dashboard in the session. |
Dashboard |
dashboard(String id)
Returns dashboard navigation and utilities for the dashboard with the given id. |
void |
disableWebSudo()
|
protected void |
editCurrentIssue()
|
Navigator |
editIssue(String issueKey)
|
Navigator |
expandAllNavigatorSections()
Expands all collapsed navigator sections in the left hand column of the issuenavigator |
Navigator |
expandContentSection(String sectionId)
Expands a particular collapsed content session in the content pane of the issuenavigator |
Navigator |
findAllIssues()
Finds all issues using simple navigation. |
Navigator |
findIssuesWithJql(String jql)
|
Navigator |
gotoAdmin()
|
Navigator |
gotoBrowseProject(String projectName)
|
Navigator |
gotoCreateIssueScreen(String project,
String issueType)
Goes to the first page for creating an issue but doesn't actually create an issue. |
Navigator |
gotoFindIssues()
|
Navigator |
gotoFindIssuesAdvanced()
Goes to the JQL view of the issue navigator. |
Navigator |
gotoFindIssuesSimple()
Goes to the issue navigator and ensures the simple search mode. |
Navigator |
gotoHome()
|
Navigator |
gotoIssue(String issueKey)
|
Navigator |
gotoManageFilters()
Navigates to the Manage Filters page. |
Navigator |
gotoPage(String relativeUrl,
boolean waitForPageToLoad)
Navigates to the page specified by the relative URL. |
Navigator |
gotoUserProfile()
|
Navigator |
gotoUserProfile(String user)
|
Navigator |
gotoUserProfileTab(String tab)
|
Navigator |
gotoUserProfileTab(String tab,
String user)
|
IssueNavigation |
issue()
Returns a handle on issue navigation utilities. |
IssueNavigatorNavigation |
issueNavigator()
Returns an object that can be used to control the issue navigator. |
Navigator |
login(String username)
Login using the user name and password as the same value |
Navigator |
login(String username,
String password)
|
Navigator |
login(User user,
String destination)
Login and redirect to a specified destination. |
Navigator |
loginAsSystemAdmin(String destination)
Login as the system administrator and redirect to a specified destination. |
Navigator |
logout(String xsrfToken)
|
Navigator |
openHistoryTab()
Go to the 'History' tab on the view issue screen. |
void |
webSudoAuthenticate(String password)
Checks if we have been redirected to the websudo login form and logs in. |
void |
webSudoAuthenticateUsingLastPassword()
|
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware |
---|
context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NavigatorImpl(SeleniumContext ctx)
Method Detail |
---|
public Navigator login(String username)
Navigator
login
in interface Navigator
username
- the username and password to use
public Navigator login(String username, String password)
login
in interface Navigator
public Navigator loginAsSystemAdmin(String destination)
Navigator
loginAsSystemAdmin
in interface Navigator
destination
- URL chunk to set as os_destination in the login URL
public Navigator login(User user, String destination)
Navigator
login
in interface Navigator
user
- User to extract username and password fromdestination
- destination to set as os_destination in the login URL
public Navigator logout(String xsrfToken)
logout
in interface Navigator
public Navigator gotoPage(String relativeUrl, boolean waitForPageToLoad)
Navigator
gotoPage
in interface Navigator
relativeUrl
- relative URL - not starting with '/'
public Navigator gotoHome()
gotoHome
in interface Navigator
public Navigator gotoManageFilters()
Navigator
gotoManageFilters
in interface Navigator
public Navigator gotoFindIssues()
gotoFindIssues
in interface Navigator
public Navigator gotoFindIssuesSimple()
Navigator
gotoFindIssuesSimple
in interface Navigator
public Navigator gotoFindIssuesAdvanced()
Navigator
gotoFindIssuesAdvanced
in interface Navigator
public Navigator gotoAdmin()
gotoAdmin
in interface Navigator
public void webSudoAuthenticate(String password)
Navigator
webSudoAuthenticate
in interface Navigator
public void webSudoAuthenticateUsingLastPassword()
webSudoAuthenticateUsingLastPassword
in interface Navigator
public void disableWebSudo()
disableWebSudo
in interface Navigator
public Navigator gotoUserProfile()
gotoUserProfile
in interface Navigator
public Navigator gotoUserProfile(String user)
gotoUserProfile
in interface Navigator
public Navigator gotoUserProfileTab(String tab)
gotoUserProfileTab
in interface Navigator
public Navigator gotoUserProfileTab(String tab, String user)
gotoUserProfileTab
in interface Navigator
public Navigator gotoIssue(String issueKey)
gotoIssue
in interface Navigator
public Navigator openHistoryTab()
Navigator
openHistoryTab
in interface Navigator
protected void editCurrentIssue()
public Navigator editIssue(String issueKey)
editIssue
in interface Navigator
public Navigator findAllIssues()
Navigator
Navigator.findIssuesWithJql(String)
for JQL searching
NOTE: This will reset the issue navigator navType to simple if it is currently JQL
findAllIssues
in interface Navigator
public Navigator findIssuesWithJql(String jql)
findIssuesWithJql
in interface Navigator
public Navigator clickAndWaitForPageLoad(String id)
Navigator
clickAndWaitForPageLoad
in interface Navigator
id
- element id
public Navigator click(String id)
click
in interface Navigator
public Navigator gotoBrowseProject(String projectName)
gotoBrowseProject
in interface Navigator
public String createIssue(String projectName, String issueType, String summary)
Navigator
createIssue
in interface Navigator
projectName
- - the name of the project - can be nulllissueType
- the type of issue - can be nulllsummary
- the summary of the issue
public void browseProject(String projectKey)
Navigator
browseProject
in interface Navigator
projectKey
- the project's key.public Dashboard dashboard(String id)
Navigator
dashboard
in interface Navigator
id
- the id of the dashboard
public Dashboard currentDashboard()
Navigator
currentDashboard
in interface Navigator
public Navigator expandAllNavigatorSections()
Navigator
expandAllNavigatorSections
in interface Navigator
public Navigator expandContentSection(String sectionId)
Navigator
expandContentSection
in interface Navigator
sectionId
- the id of the section to expand
public BulkChangeWizard bulkChange(IssueNavigatorNavigation.BulkChangeOption bulkChangeOption)
Navigator
bulkChange
in interface Navigator
bulkChangeOption
- whether to bulk change all results or just the current page.
public IssueNavigation issue()
Navigator
issue
in interface Navigator
public IssueNavigatorNavigation issueNavigator()
Navigator
issueNavigator
in interface Navigator
public Navigator gotoCreateIssueScreen(String project, String issueType)
Navigator
gotoCreateIssueScreen
in interface Navigator
project
- The name of the project to create the issue inissueType
- The type of issue to create
public Navigator collapseContentSection(String sectionId)
Navigator
collapseContentSection
in interface Navigator
sectionId
- the id of the section to collapse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |