com.atlassian.jira.webtest.selenium.framework.components
Class IssueNavResults

java.lang.Object
  extended by com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
      extended by com.atlassian.jira.webtest.selenium.framework.components.IssueNavResults

public final class IssueNavResults
extends AbstractSeleniumPageObject

Represents issue navigator results in the Selenium World™

Since:
v4.2

Nested Class Summary
static class IssueNavResults.IssueNavAction
           
 class IssueNavResults.SelectedIssue
          Represents action over a single issue executable from the issue navigator UI.
 
Field Summary
static String LOCATOR
           
 
Fields inherited from class com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
assertThat, client, context
 
Constructor Summary
IssueNavResults(SeleniumContext ctx)
           
 
Method Summary
 void assertAnyIssueSelected()
          Assert that any issue row is currently selected.
 void assertHasIssue(long issueId)
          Assert that issue identified by issueId is contained in this results page.
 void assertHasIssue(String issueKey)
          Assert that issue identified by issueKey is contained in this results page.
 void assertIssueSelectedAt(int position)
           
 void assertIssueSelectedWith(long issueId)
          Assert that any issue with given issueId is currently selected.
 void assertIssueSelectedWith(String issueKey)
          Assert that any issue with given issueKey is currently selected.
 String currentSelectedIssueRowLocator()
           
 IssueNavResults down()
           
 IssueNavResults down(int times)
          Press down arrow a certain number of times.
 String inResults(String jQueryLocator)
           
 String inSelectedRow(String jQueryLocator)
           
 boolean isAnyIssueSelected()
           
 boolean isIssueSelectedAt(int position)
           
 boolean isIssueSelectedWith(long issueId)
           
 boolean isIssueSelectedWith(String issueKey)
           
 long issueIdFor(int position)
           
 String issueRowLocatorById(long issueId)
           
 String issueRowLocatorByKey(String issueKey)
           
 String issueRowLocatorByPosition(int position)
          Locator for issue at given position in the issue nav results table (1-based)
 IssueNavResults.SelectedIssue selectedIssue()
           
 long selectedIssueId()
           
 String selectedIssueKey()
           
 String selectedIssueRowLocator(long issueId)
           
 String selectedIssueRowLocator(String issueKey)
           
 IssueNavResults selectFirstIssue()
           
 IssueNavResults selectIssue(String issueKey)
           
 IssueNavResults up()
           
 IssueNavResults up(int times)
          Press up arrow a certain number of times.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCATOR

public static final String LOCATOR
Constructor Detail

IssueNavResults

public IssueNavResults(SeleniumContext ctx)
Method Detail

inResults

public String inResults(String jQueryLocator)

inSelectedRow

public String inSelectedRow(String jQueryLocator)

currentSelectedIssueRowLocator

public String currentSelectedIssueRowLocator()

selectedIssueRowLocator

public String selectedIssueRowLocator(String issueKey)

selectedIssueRowLocator

public String selectedIssueRowLocator(long issueId)

issueRowLocatorByKey

public String issueRowLocatorByKey(String issueKey)

issueRowLocatorById

public String issueRowLocatorById(long issueId)

issueRowLocatorByPosition

public String issueRowLocatorByPosition(int position)
Locator for issue at given position in the issue nav results table (1-based)

Parameters:
position - 1-based issue position ordinal
Returns:
locator for issue at given position

up

public IssueNavResults up()

down

public IssueNavResults down()

up

public IssueNavResults up(int times)
Press up arrow a certain number of times.


down

public IssueNavResults down(int times)
Press down arrow a certain number of times.


selectFirstIssue

public IssueNavResults selectFirstIssue()

selectIssue

public IssueNavResults selectIssue(String issueKey)

selectedIssue

public IssueNavResults.SelectedIssue selectedIssue()

selectedIssueKey

public String selectedIssueKey()

selectedIssueId

public long selectedIssueId()

issueIdFor

public long issueIdFor(int position)

isAnyIssueSelected

public boolean isAnyIssueSelected()

isIssueSelectedWith

public boolean isIssueSelectedWith(String issueKey)

isIssueSelectedWith

public boolean isIssueSelectedWith(long issueId)

isIssueSelectedAt

public boolean isIssueSelectedAt(int position)

assertAnyIssueSelected

public void assertAnyIssueSelected()
Assert that any issue row is currently selected.


assertIssueSelectedWith

public void assertIssueSelectedWith(String issueKey)
Assert that any issue with given issueKey is currently selected.

Parameters:
issueKey - key of the issue to check

assertIssueSelectedWith

public void assertIssueSelectedWith(long issueId)
Assert that any issue with given issueId is currently selected.

Parameters:
issueId - ID of the issue to check

assertIssueSelectedAt

public void assertIssueSelectedAt(int position)

assertHasIssue

public void assertHasIssue(String issueKey)
Assert that issue identified by issueKey is contained in this results page.

Parameters:
issueKey - key of the issue to check

assertHasIssue

public void assertHasIssue(long issueId)
Assert that issue identified by issueId is contained in this results page.

Parameters:
issueId - ID of the issue to check


Copyright © 2002-2013 Atlassian. All Rights Reserved.