com.atlassian.jira.webtest.framework.impl.selenium.dialog
Class SeleniumIssuePickerPopup

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.dialog.AbstractSeleniumDialog<D>
                  extended by com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumPopup<D>
                      extended by com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumPopupInPage<IssuePickerPopup>
                          extended by com.atlassian.jira.webtest.framework.impl.selenium.dialog.SeleniumIssuePickerPopup
All Implemented Interfaces:
Localizable, Openable<IssuePickerPopup>, PageObject, Dialog<IssuePickerPopup>, IssuePickerPopup

public class SeleniumIssuePickerPopup
extends AbstractSeleniumPopupInPage<IssuePickerPopup>
implements IssuePickerPopup

Selenium implementation of IssuePickerPopup.

Since:
v4.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.webtest.framework.dialog.IssuePickerPopup
IssuePickerPopup.CloseMode, IssuePickerPopup.ResultSection, IssuePickerPopup.SearchMode
 
Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.impl.selenium.core.SeleniumContextAware
assertThat, client, context, timeouts
 
Constructor Summary
SeleniumIssuePickerPopup(Page page, SeleniumLocator openLinkLocator, SeleniumContext ctx)
           
 
Method Summary
 IssuePickerPopup.CloseMode close()
          Close this issue picker popup
protected  Class<IssuePickerPopup> dialogType()
           
 Select filterSelect()
           Filter select of this popup.
 TimedCondition hasAnyIssues(IssuePickerPopup.ResultSection section)
          Checks whether this picker has any issues in a particular result section.
 TimedCondition hasIssue(IssueData issueData)
          Checks whether this picker has a particular issue, described by issueData, in its search results (in any section).
 TimedCondition hasIssue(IssuePickerPopup.ResultSection section, IssueData issueData)
          Checks whether this picker has a particular issue, described by issueData, in a particular result section.
 TimedCondition isInMode(IssuePickerPopup.SearchMode mode)
          Checks, whether this picker is currently in given search mode.
 TimedQuery<IssuePickerPopup.SearchMode> searchMode()
          Current search mode of this picker.
 IssuePickerPopup switchToFilter(Option option)
          Switch to filter represented by given filterOption.
 IssuePickerPopup switchToRecentIssues()
          Switch to recent issues mode.
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumPopupInPage
isOpenableInContext
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumPopup
asTargetType, isInPopupWindow, isOpen, open, openDialogLocator
 
Methods inherited from class com.atlassian.jira.webtest.framework.impl.selenium.dialog.AbstractSeleniumDialog
detector, isClosed, isOpenable, locator
 
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.core.Openable
isClosed, isOpen, isOpenable, open
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.Localizable
locator
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PageObject
context, isReady
 

Constructor Detail

SeleniumIssuePickerPopup

public SeleniumIssuePickerPopup(Page page,
                                SeleniumLocator openLinkLocator,
                                SeleniumContext ctx)
Method Detail

dialogType

protected Class<IssuePickerPopup> dialogType()
Specified by:
dialogType in class AbstractSeleniumPopup<IssuePickerPopup>

filterSelect

public Select filterSelect()
Description copied from interface: IssuePickerPopup

Filter select of this popup.

NOTE: Changing selection of this select will cause reload of this popup into the filter search mode.

Specified by:
filterSelect in interface IssuePickerPopup
Returns:
HTML select containing filters to search issues in
See Also:
IssuePickerPopup.SearchMode.FILTER

isInMode

public TimedCondition isInMode(IssuePickerPopup.SearchMode mode)
Description copied from interface: IssuePickerPopup
Checks, whether this picker is currently in given search mode.

Specified by:
isInMode in interface IssuePickerPopup
Parameters:
mode - mode to verify
Returns:
timed condition verifyng, if the picker is in given mode
See Also:
IssuePickerPopup.SearchMode

searchMode

public TimedQuery<IssuePickerPopup.SearchMode> searchMode()
Description copied from interface: IssuePickerPopup
Current search mode of this picker. If this is not accessible before the query timeout, return null.

Specified by:
searchMode in interface IssuePickerPopup
Returns:
timed query for the search mode of this picker
See Also:
IssuePickerPopup.SearchMode

hasAnyIssues

public TimedCondition hasAnyIssues(IssuePickerPopup.ResultSection section)
Description copied from interface: IssuePickerPopup
Checks whether this picker has any issues in a particular result section.

Specified by:
hasAnyIssues in interface IssuePickerPopup
Parameters:
section - section to check
Returns:
condition verifying if there are any issue in the given results section, which also assumes that the picker is open in appropriate search mode (i.e. search mode containing given section)
See Also:
IssuePickerPopup.ResultSection.mode()

hasIssue

public TimedCondition hasIssue(IssuePickerPopup.ResultSection section,
                               IssueData issueData)
Description copied from interface: IssuePickerPopup
Checks whether this picker has a particular issue, described by issueData, in a particular result section.

Specified by:
hasIssue in interface IssuePickerPopup
Parameters:
section - section to check
issueData - issue to find
Returns:
condition verifying if the issue is present in the given results section, which also assumes that the picker is open in appropriate search mode (i.e. search mode containing given section)
See Also:
IssuePickerPopup.ResultSection.mode()

hasIssue

public TimedCondition hasIssue(IssueData issueData)
Description copied from interface: IssuePickerPopup
Checks whether this picker has a particular issue, described by issueData, in its search results (in any section).

Specified by:
hasIssue in interface IssuePickerPopup
Parameters:
issueData - issue to find
Returns:
condition verifying if the issue is present in any results section of this picker, which also assummes that the picker is open

switchToRecentIssues

public IssuePickerPopup switchToRecentIssues()
Description copied from interface: IssuePickerPopup
Switch to recent issues mode. Do nothing, if the picker already is in that mode.

Specified by:
switchToRecentIssues in interface IssuePickerPopup
Returns:
this picker instance

switchToFilter

public IssuePickerPopup switchToFilter(Option option)
Description copied from interface: IssuePickerPopup
Switch to filter represented by given filterOption. Filter options may be retrieved from this picker's filter select, or created manually by clients.

Specified by:
switchToFilter in interface IssuePickerPopup
Parameters:
option - an option representing the filter
Returns:
this picker instance
See Also:
IssuePickerPopup.filterSelect(), Select.all(), Options

close

public IssuePickerPopup.CloseMode close()
Description copied from interface: IssuePickerPopup
Close this issue picker popup

Specified by:
close in interface IssuePickerPopup
Returns:
close mode


Copyright © 2002-2013 Atlassian. All Rights Reserved.