|
||||||||||
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 |
clickAdditionalLinkWithClass(String className)
|
void |
clickInsertMedia()
|
LinkBrowser |
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)
|
boolean |
isPresent()
|
boolean |
isVisibleAfterWait()
|
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)
|
static EditorAutocomplete |
triggerWithShortcutWithoutWait(String trigger,
TinyMce tinyMce)
|
void |
type(String text)
|
void |
waitForAdditionalLinkWithClassNotPresent(String className)
|
void |
waitForAdditionalLinkWithClassPresent(String className)
|
void |
waitForNthResultToContain(int index,
String itemText)
|
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 static EditorAutocomplete triggerWithShortcutWithoutWait(String trigger, TinyMce tinyMce)
public void type(String text)
public boolean isPresent()
public void waitUntilVisible()
public boolean isVisibleAfterWait()
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 waitForNthResultToContain(int index, String itemText)
public void waitForAdditionalLinkWithClassPresent(String className)
public void waitForAdditionalLinkWithClassNotPresent(String className)
public void clickAdditionalLinkWithClass(String className)
public void clickSearchFor()
public LinkBrowser clickInsertWebLink()
public void clickInsertMedia()
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 |