|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
com.atlassian.jira.webtest.selenium.framework.components.GenericMultiSelect
public final class GenericMultiSelect
Generic MultiSelect representation.
Field Summary | |
---|---|
protected Locator |
inputAreaLocator
Deprecated. |
protected MultiSelectLocatorData |
locators
Deprecated. |
Fields inherited from class com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject |
---|
assertThat, client, context |
Constructor Summary | |
---|---|
GenericMultiSelect(String contextLocator,
int customFieldId,
SeleniumContext ctx)
Create new MultiSelect for a picker associated with a JIRA custom field. |
|
GenericMultiSelect(String contextLocator,
String fieldName,
SeleniumContext ctx)
Create new MultiSelect with custom field name. |
Method Summary | |
---|---|
String |
anyFocusedPickedElementLocator()
Deprecated. |
String |
anyPickedElementLocator()
Deprecated. |
void |
assertElementNotPicked(String value)
Deprecated. |
void |
assertElementPicked(String value)
Deprecated. |
void |
assertNoElementPicked()
Deprecated. |
void |
assertReady(long timeout)
Deprecated. Assert that this object is loaded and ready to be exercised by Selenium. |
T |
awayFromInputArea()
Deprecated. Removes focus from the input area of the picker, which will trigger processing of the previously inserted queries and close the suggestions drop-down. |
T |
clearInputArea()
Deprecated. Clear input area from any previously inserted text. |
T |
confirmInput()
Deprecated. Press enter in the input area to confirm current option (the one selected in suggestions drop-down). |
protected MultiSelectSuggestions<T> |
createSuggestions()
Deprecated. Factory method for the suggestions control. |
T |
deleteSelection()
Deprecated. |
String |
dropDownIconLocator()
Deprecated. |
String |
focusedSuggestion()
Deprecated. |
T |
focusOnInputArea()
Deprecated. |
int |
getFocusedLozengesCount()
Deprecated. |
int |
getFocusedSuggestionIndex()
Deprecated. |
int |
getFocusedSuggestionsCount()
Deprecated. |
int |
getLozengesCount()
Deprecated. |
boolean |
hasAnyFocusedPickedElement()
Deprecated. |
String |
inputAreaLocator()
Deprecated. |
Locator |
inputLocatorObject()
Deprecated. |
T |
insertQuery(String query)
Deprecated. |
T |
insertQueryFast(String query)
Deprecated. Will invoke all picker events only for the last character in the query. |
String |
locator()
Deprecated. |
String |
locatorWithin(String locator)
Deprecated. Returns jQuery locator in context of this MultiSelect control. |
T |
nextSuggestion()
Deprecated. |
String |
pickedElementLocator(String pickedElemValue)
Deprecated. |
T |
prevSuggestion()
Deprecated. |
T |
selectAll()
Deprecated. |
String |
selectModelLocator()
Deprecated. |
MultiSelectSuggestions<T> |
suggestions()
Deprecated. |
String |
suggestionsLocator()
Deprecated. |
MultiSelectSuggestions<T> |
triggerSuggestionsByArrowDown()
Deprecated. |
MultiSelectSuggestions<T> |
triggerSuggestionsByClick()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final MultiSelectLocatorData locators
protected final Locator inputAreaLocator
Constructor Detail |
---|
public GenericMultiSelect(String contextLocator, String fieldName, SeleniumContext ctx)
contextLocator
- context locator (in case there is more than one picker on the page). If empty,
the picker locator will be considered global within the page (discouraged)fieldName
- name of the field associated with this MultiSelectctx
- Selenium contextpublic GenericMultiSelect(String contextLocator, int customFieldId, SeleniumContext ctx)
contextLocator
- context locator (in case there is more than one picker on the page). If empty,
the picker locator will be considered global within the page (discouraged)customFieldId
- custom field IDctx
- Selenium contextMethod Detail |
---|
protected MultiSelectSuggestions<T> createSuggestions()
public String locator()
public String inputAreaLocator()
public Locator inputLocatorObject()
public String suggestionsLocator()
public String selectModelLocator()
public String dropDownIconLocator()
public String pickedElementLocator(String pickedElemValue)
public String anyPickedElementLocator()
public String anyFocusedPickedElementLocator()
public String focusedSuggestion()
public String locatorWithin(String locator)
locator
- raw jQuery locator
public int getLozengesCount()
public int getFocusedLozengesCount()
public int getFocusedSuggestionsCount()
public int getFocusedSuggestionIndex()
public boolean hasAnyFocusedPickedElement()
public MultiSelectSuggestions<T> suggestions()
public T focusOnInputArea()
public T insertQuery(String query)
public T insertQueryFast(String query)
query
- query to insert
public T deleteSelection()
public T selectAll()
public T prevSuggestion()
public T nextSuggestion()
public T clearInputArea()
public T awayFromInputArea()
public T confirmInput()
public MultiSelectSuggestions<T> triggerSuggestionsByArrowDown()
public MultiSelectSuggestions<T> triggerSuggestionsByClick()
public void assertReady(long timeout)
assertReady
in interface PageObject
timeout
- timeout to waitpublic void assertNoElementPicked()
public void assertElementPicked(String value)
public void assertElementNotPicked(String value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |