|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.selenium.client.EditorAutocomplete
public class EditorAutocomplete
Represents an Autocomplete widget in the RTE that accepts keystrokes and displays a list of search results that a
user may select from.
TODO - this class copied from QuickNavBox
, both should share methods.
QuickNavBox
,
ContentNameSearchAction
Field Summary | |
---|---|
static String |
DROPDOWN_ID
|
Method Summary | |
---|---|
void |
clickInsertWebLink()
|
void |
clickItem(String itemText)
|
void |
clickResult(TitledContent contentEntity)
|
void |
clickSearchFor()
|
int |
getNumberOfResults()
The number of results in the autocomplete dropdown not including the the headers and other menu options. |
String |
getResultTitle(String name)
|
boolean |
hasImgForEntity(TitledContent contentEntity)
|
boolean |
hasVisibleIconSpanForEntity(TitledContent contentEntity)
|
void |
pressDown()
Presses the down arrow key. |
void |
pressEnter()
Presses the enter key. |
void |
pressUp()
Presses the up arrow key. |
boolean |
resultsContain(TitledContent contentEntity)
Returns true if the given ContentEntityObject appears in the dropdown menu. |
static EditorAutocomplete |
triggerWithCharacter(String trigger,
TinyMce tinyMce)
|
static EditorAutocomplete |
triggerWithShortcut(TinyMce.ShortCut shortCut,
TinyMce tinyMce)
|
void |
type(String text)
|
void |
waitForNumberOfResults(int expectedResults)
|
void |
waitForResultsToContain(TitledContent contentEntity)
Checks that the given ContentEntityObject appears in the dropdown menu. |
void |
waitForResultsToContainExactEntry(String name)
|
void |
waitForResultsToPartiallyContain(String partialName)
|
void |
waitForResultToBeSelected(int resultIndex)
|
void |
waitUntilDead()
Waits until there is no Autocomplete dropdown present in the DOM. |
void |
waitUntilQuickSearchNotBusy()
|
void |
waitUntilVisible()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DROPDOWN_ID
Method Detail |
---|
public static EditorAutocomplete triggerWithCharacter(String trigger, TinyMce tinyMce)
public static EditorAutocomplete triggerWithShortcut(TinyMce.ShortCut shortCut, TinyMce tinyMce)
public void type(String text)
public void waitUntilVisible()
public void waitForNumberOfResults(int expectedResults)
public int getNumberOfResults()
public void waitForResultsToContainExactEntry(String name)
public void waitForResultsToPartiallyContain(String partialName)
public String getResultTitle(String name)
public void clickSearchFor()
public void clickInsertWebLink()
public void pressDown()
public void pressUp()
public void pressEnter()
public void clickResult(TitledContent contentEntity)
public void clickItem(String itemText)
public void waitUntilDead()
public void waitForResultsToContain(TitledContent contentEntity)
public boolean resultsContain(TitledContent contentEntity)
public boolean hasImgForEntity(TitledContent contentEntity)
public boolean hasVisibleIconSpanForEntity(TitledContent contentEntity)
public void waitUntilQuickSearchNotBusy()
public void waitForResultToBeSelected(int resultIndex)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |