com.atlassian.jira.webtest.framework.impl.selenium.page.issue
Class SeleniumViewIssue

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.issue.SeleniumViewIssue
All Implemented Interfaces:
PageObject, ParentObject, ParentPage, IssueAware, ViewIssue, IssueActionsParent, Page

public class SeleniumViewIssue
extends AbstractSeleniumPage
implements ViewIssue

Selenium implementation of the ViewIssue interface.

Since:
v4.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.webtest.framework.page.issue.ViewIssue
ViewIssue.ViewIssueDialogOpenMode<D extends IssueActionDialog<D>>
 
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
SeleniumViewIssue(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.
<T extends PageObject>
T
getChild(Class<T> childType)
          Get child of this component for given childType.
 IssueData issueData()
          Issue data of the associated issue.
 IssueMenu menu()
          Issue menu of this View Issue page.
<D extends IssueActionDialog<D>>
ViewIssue.ViewIssueDialogOpenMode<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().
 
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.Page
isAt
 

Constructor Detail

SeleniumViewIssue

public SeleniumViewIssue(SeleniumContext ctx)
Method Detail

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

menu

public IssueMenu menu()
Description copied from interface: ViewIssue
Issue menu of this View Issue page.

Specified by:
menu in interface ViewIssue
Returns:
issue menu

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

getChild

public <T extends PageObject> T getChild(Class<T> childType)
Description copied from interface: ParentObject
Get child of this component for given childType.

Specified by:
getChild in interface ParentObject
Type Parameters:
T - type of the child
Parameters:
childType - class of the child
Returns:
child component instance

openDialog

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

Extension of the parent method to be able to open the dialog via issue menu.

Specified by:
openDialog in interface ViewIssue
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

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()


Copyright © 2002-2013 Atlassian. All Rights Reserved.