|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject com.atlassian.jira.webtest.selenium.framework.components.MultiSelectSuggestions<T>
public class MultiSelectSuggestions<T extends com.atlassian.jira.webtest.selenium.framework.components.MultiSelect>
Suggestions component of the AUI MultiSelect.
Field Summary |
---|
Fields inherited from class com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject |
---|
assertThat, client, context |
Method Summary | |
---|---|
void |
assertClosed()
Assert that this suggestions drop-down is closed. |
void |
assertClosed(int timeout)
Assert that this suggestions drop-down is closed by a specific timeout. |
void |
assertContains(String suggestion,
String... moreSuggestions)
Assert that this suggestions contain given suggestion in any place, that is in any group, or as a first-level suggestion (not contained in any group). |
void |
assertContains(String group,
String suggestion)
|
void |
assertContainsGroup(String group)
|
void |
assertDisplayedIssueCountEquals(String suggestionGroup,
int expected)
|
void |
assertDoesNotContain(String suggestion,
String... moreSuggestions)
Assert that this suggestions component does not contain given suggestion at all - that is suggestion in any group, or a first-level suggestion (not contained in any group). |
void |
assertDoesNotContain(String group,
String suggestion)
Assert that this suggestions component does not contain given suggestion in given group. |
void |
assertNoMatches()
Asserts for a special case, where a 'No Matches' string is displayed without a group. |
void |
assertOpen()
Assert that this suggestions drop-down is open. |
void |
assertOpen(int timeout)
Assert that this suggestions drop-down is open by a specific timeout.. |
void |
assertReady(long timeout)
Assert that this object is loaded and ready to be exercised by Selenium. |
void |
assertSelected(String group,
String suggestion)
Assert that given suggestion in given group is selected. |
void |
assertTotalIssueCountEquals(String suggestionGroup,
int expected)
|
T |
closeByEscape()
|
boolean |
containsGroup(String groupName)
|
int |
displayedIssueCount(String suggestionGroup)
|
MultiSelectSuggestions<T> |
down()
|
String |
groupHeaderDescriptionLocator(String group)
|
String |
groupHeaderDescriptionText(String suggestionGroup)
|
String |
groupHeaderLocator(String group)
Locator of the group header of given suggestion group. |
boolean |
isOpen()
Checks that this suggestions drop-down is open. |
String |
locator()
|
String |
locatorWithin(String jQueryLocator)
|
String |
noMatchesLocator()
Locator for 'No Matches' case in suggestions drop-down. |
String |
selectedSuggestionLocator(String group,
String suggestionValue)
Locator for a currently selected suggestion in a particular group. |
String |
suggestionGroupLocator(String group)
|
String |
suggestionInGroupLocator(String group,
String suggestionValue)
Locator for suggestion in a particular group. |
String |
suggestionLocator(String suggestionValue)
Locator for suggestion in any group, or without a group. |
int |
totalIssueCount(String suggestionGroup)
|
MultiSelectSuggestions<T> |
up()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String locator()
public String locatorWithin(String jQueryLocator)
public String suggestionGroupLocator(String group)
public String suggestionInGroupLocator(String group, String suggestionValue)
group
- suggestion group, in which the suggestion should appearsuggestionValue
- suggestion text
public String suggestionLocator(String suggestionValue)
suggestionValue
- suggestion text
public String noMatchesLocator()
public String selectedSuggestionLocator(String group, String suggestionValue)
group
- suggestion group, in which the selected suggestion should appearsuggestionValue
- selected suggestion text
public String groupHeaderLocator(String group)
group
- suggestion group to find
public String groupHeaderDescriptionLocator(String group)
public String groupHeaderDescriptionText(String suggestionGroup)
public int displayedIssueCount(String suggestionGroup)
public int totalIssueCount(String suggestionGroup)
public boolean isOpen()
public boolean containsGroup(String groupName)
public MultiSelectSuggestions<T> up()
public MultiSelectSuggestions<T> down()
public T closeByEscape()
public void assertReady(long timeout)
assertReady
in interface PageObject
timeout
- timeout to waitpublic void assertOpen()
public void assertOpen(int timeout)
timeout
- timeout to waitpublic void assertClosed()
public void assertClosed(int timeout)
timeout
- timeout to waitpublic void assertContainsGroup(String group)
public void assertContains(String group, String suggestion)
public void assertContains(String suggestion, String... moreSuggestions)
suggestion
- suggestion value to checkmoreSuggestions
- optional suggestions to checkpublic void assertNoMatches()
public void assertSelected(String group, String suggestion)
group
- groupsuggestion
- suggestion text valuepublic void assertDoesNotContain(String group, String suggestion)
group
- group to checksuggestion
- suggestion value to checkpublic void assertDoesNotContain(String suggestion, String... moreSuggestions)
suggestion
- suggestion value to checkmoreSuggestions
- optional suggestions to checkpublic void assertDisplayedIssueCountEquals(String suggestionGroup, int expected)
public void assertTotalIssueCountEquals(String suggestionGroup, int expected)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |