com.atlassian.jira.webtest.framework.impl.selenium.page.issuenavigator
Class SeleniumIssueNav

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
      extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
          extended by com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
              extended by com.atlassian.jira.webtest.framework.impl.selenium.page.AbstractSeleniumPage
                  extended by com.atlassian.jira.webtest.framework.impl.selenium.page.SeleniumAbstractGlobalPage<IssueNavigator>
                      extended by com.atlassian.jira.webtest.framework.impl.selenium.page.issuenavigator.SeleniumIssueNav
All Implemented Interfaces:
PageObject, IssueAware, GlobalPage<IssueNavigator>, IssueActionsParent, IssueNavigator, Page

public class SeleniumIssueNav
extends SeleniumAbstractGlobalPage<IssueNavigator>
implements IssueNavigator

Selenium implementation of the IssueNavigator interface.

Since:
v4.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.webtest.framework.page.IssueActionsParent
IssueActionsParent.DialogOpenMode<D extends IssueActionDialog<D>>
 
Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
SeleniumIssueNav(SeleniumContext ctx)
           
 
Method Summary
protected  SeleniumLocator detector()
          Main locator of this page object.
<D extends IssueActionDialog<D>>
D
dialog(Class<D> dialogType)
           Get dialog of given type associated with this page.
 DotDialog dotDialog()
          Dot Dialog of this issue actions page.
 TimedCondition isAdvancedMode()
          Checks if advanced search mode is on.
 TimedCondition isSimpleMode()
          Checks if simple search mode is on.
 IssueData issueData()
          Issue data of the associated issue.
protected  SeleniumLocator linkLocator()
          Locator of a globally accessible link leading to this page.
<D extends IssueActionDialog<D>>
IssueActionsParent.DialogOpenMode<D>
openDialog(Class<D> dialogType)
          Open an issue operation dialog of given dialogType.
 DotDialog openDotDialog()
          Open and return the dot-dialog for the issue in current context (which may be queried by IssueAware.issueData().
 IssueTable results()
          Search results table.
 SimpleSearchFilter simpleSearch()
           Simple search filter of this issue navigator.
 IssueNavigator toAdvancedMode()
          Switch to advanced (JQL) search mode.
 IssueNavigator toSimpleMode()
          Switch to simple search mode.
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.page.SeleniumAbstractGlobalPage
asTargetType, goTo
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.page.AbstractSeleniumPage
isAt
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractLocatorBasedPageObject
isReady
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.AbstractSeleniumPageObject
body, conditions, css, forClass, id, jQuery, locatorFor, name, queries, waitFor, xpath
 
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
 
Methods inherited from interface com.atlassian.jira.webtest.framework.page.GlobalPage
goTo
 
Methods inherited from interface com.atlassian.jira.webtest.framework.page.Page
isAt
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context, isReady
 

Constructor Detail

SeleniumIssueNav

public SeleniumIssueNav(SeleniumContext ctx)
Method Detail

isSimpleMode

public TimedCondition isSimpleMode()
Description copied from interface: IssueNavigator
Checks if simple search mode is on.

Specified by:
isSimpleMode in interface IssueNavigator
Returns:
timed condition querying if the simple search mode is on

isAdvancedMode

public TimedCondition isAdvancedMode()
Description copied from interface: IssueNavigator
Checks if advanced search mode is on.

Specified by:
isAdvancedMode in interface IssueNavigator
Returns:
timed condition querying if the advanced search mode is on

issueData

public IssueData issueData()
Description copied from interface: IssueAware
Issue data of the associated issue.

Specified by:
issueData in interface IssueAware
Returns:
issue data

detector

protected SeleniumLocator detector()
Description copied from class: AbstractLocatorBasedPageObject
Main locator of this page object. Its presence means that this object is ready to be manipulated in the test.

Specified by:
detector in class AbstractLocatorBasedPageObject
Returns:
main locator of this page object

linkLocator

protected SeleniumLocator linkLocator()
Description copied from class: SeleniumAbstractGlobalPage
Locator of a globally accessible link leading to this page.

Specified by:
linkLocator in class SeleniumAbstractGlobalPage<IssueNavigator>
Returns:
global link locator

results

public IssueTable results()
Description copied from interface: IssueNavigator
Search results table.

Specified by:
results in interface IssueNavigator
Returns:
results

simpleSearch

public SimpleSearchFilter simpleSearch()
Description copied from interface: IssueNavigator

Simple search filter of this issue navigator.

NOTE: any operation attempted on the simple search filter in the advances mode may result in illegal state exception. Use PageObject.isReady(), or IssueNavigator.isSimpleMode() to detect, whether usage of this component is legal in the current test context.

Specified by:
simpleSearch in interface IssueNavigator
Returns:
simple search filter instance of this issue navigator
See Also:
IssueNavigator.isSimpleMode(), IssueNavigator.toSimpleMode(), SimpleSearchFilter

dialog

public <D extends IssueActionDialog<D>> D dialog(Class<D> dialogType)
Description copied from interface: IssueActionsParent

Get dialog of given type associated with this page. Calling this dialogs Openable.open() method will attempt to open the dialog by the default method for this page.

Contrary to the IssueActionsParent.openDialog(Class), this method will not attempt any actions (opening/closing) on the returned dialog instance. The dialog instance may be used to query the state of this particular dialog (e.g. whether it is currently open as a result of manipulations of the ViewIssue page object without involving IssueActionsParent.openDialog(Class).

Specified by:
dialog in interface IssueActionsParent
Type Parameters:
D - generic type of the dialog
Parameters:
dialogType - class representing type of the issue action dialog to return
Returns:
dialog D instance

dotDialog

public DotDialog dotDialog()
Description copied from interface: IssueActionsParent
Dot Dialog of this issue actions page. This method will not attempt to perform any operations on the dialog.

Specified by:
dotDialog in interface IssueActionsParent
Returns:
dot dialog instance of this page

toSimpleMode

public IssueNavigator toSimpleMode()
Description copied from interface: IssueNavigator
Switch to simple search mode.

Specified by:
toSimpleMode in interface IssueNavigator
Returns:
this issue navigator instance

toAdvancedMode

public IssueNavigator toAdvancedMode()
Description copied from interface: IssueNavigator
Switch to advanced (JQL) search mode.

Specified by:
toAdvancedMode in interface IssueNavigator
Returns:
this issue navigator instance

openDotDialog

public DotDialog openDotDialog()
Description copied from interface: IssueActionsParent
Open and return the dot-dialog for the issue in current context (which may be queried by IssueAware.issueData().

Specified by:
openDotDialog in interface IssueActionsParent
Returns:
dot dialog instance of this Issue Navigator
See Also:
IssueAware.issueData()

openDialog

public <D extends IssueActionDialog<D>> IssueActionsParent.DialogOpenMode<D> openDialog(Class<D> dialogType)
Description copied from interface: IssueActionsParent
Open an issue operation dialog of given dialogType.

Specified by:
openDialog in interface IssueActionsParent
Type Parameters:
D - type of the dialog
Parameters:
dialogType - class representing the dialog type
Returns:
opening mode to open the dialog in a desired way


Copyright © 2002-2013 Atlassian. All Rights Reserved.