public class

EditorAutocomplete

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.selenium.client.EditorAutocomplete

Class Overview

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.

Summary

Constants
String DROPDOWN_ID
Public Methods
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 waitForResultToBeSelected(int resultIndex)
void waitForResultsToContain(TitledContent contentEntity)
Checks that the given ContentEntityObject appears in the dropdown menu.
void waitForResultsToContainExactEntry(String name)
void waitForResultsToPartiallyContain(String partialName)
void waitUntilDead()
Waits until there is no Autocomplete dropdown present in the DOM.
void waitUntilQuickSearchNotBusy()
void waitUntilVisible()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String DROPDOWN_ID

Constant Value: "autocomplete-dropdown"

Public Methods

public void clickAdditionalLinkWithClass (String className)

public void clickInsertMedia ()

public LinkBrowser clickInsertWebLink ()

public void clickItem (String itemText)

public void clickResult (TitledContent contentEntity)

public void clickSearchFor ()

public int getNumberOfResults ()

The number of results in the autocomplete dropdown not including the the headers and other menu options.

public String getResultTitle (String name)

public boolean hasImgForEntity (TitledContent contentEntity)

public boolean hasVisibleIconSpanForEntity (TitledContent contentEntity)

public boolean isPresent ()

public boolean isVisibleAfterWait ()

public void pressDown ()

Presses the down arrow key.

public void pressEnter ()

Presses the enter key.

public void pressUp ()

Presses the up arrow key.

public boolean resultsContain (TitledContent contentEntity)

Returns true if the given ContentEntityObject appears in the dropdown menu. Assumes that the dropdown is already displaying results.

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 void waitForAdditionalLinkWithClassNotPresent (String className)

public void waitForAdditionalLinkWithClassPresent (String className)

public void waitForNthResultToContain (int index, String itemText)

public void waitForNumberOfResults (int expectedResults)

public void waitForResultToBeSelected (int resultIndex)

public void waitForResultsToContain (TitledContent contentEntity)

Checks that the given ContentEntityObject appears in the dropdown menu.

public void waitForResultsToContainExactEntry (String name)

public void waitForResultsToPartiallyContain (String partialName)

public void waitUntilDead ()

Waits until there is no Autocomplete dropdown present in the DOM.

public void waitUntilQuickSearchNotBusy ()

public void waitUntilVisible ()