com.atlassian.confluence.selenium.client
Class EditorAutocomplete

java.lang.Object
  extended by com.atlassian.confluence.selenium.client.EditorAutocomplete

public class EditorAutocomplete
extends java.lang.Object

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.

See Also:
QuickNavBox}, ContentNameSearchAction}

Method Summary
 void clickItem(java.lang.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.
 java.lang.String getResultTitle(java.lang.String name)
           
static EditorAutocomplete triggerWithCharacter(java.lang.String trigger, TinyMce tinyMce)
           
 void type(java.lang.String text)
           
 void waitForNumberOfResults(int expectedResults)
           
 void waitForResultsToContain(TitledContent contentEntity)
          Checks that the given ContentEntityObject appears in the dropdown menu.
 void waitForResultsToContainExactEntry(java.lang.String name)
           
 void waitForResultsToPartiallyContain(java.lang.String partialName)
           
 void waitForResultToBeSelected(int resultIndex)
           
 void waitUntilQuickSearchNotBusy()
           
 void waitUntilVisible()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

triggerWithCharacter

public static EditorAutocomplete triggerWithCharacter(java.lang.String trigger,
                                                      TinyMce tinyMce)

type

public void type(java.lang.String text)

waitUntilVisible

public void waitUntilVisible()

waitForNumberOfResults

public void waitForNumberOfResults(int expectedResults)

getNumberOfResults

public int getNumberOfResults()
The number of results in the autocomplete dropdown not including the the headers and other menu options.

Returns:

waitForResultsToContainExactEntry

public void waitForResultsToContainExactEntry(java.lang.String name)

waitForResultsToPartiallyContain

public void waitForResultsToPartiallyContain(java.lang.String partialName)

getResultTitle

public java.lang.String getResultTitle(java.lang.String name)

clickSearchFor

public void clickSearchFor()

clickResult

public void clickResult(TitledContent contentEntity)

clickItem

public void clickItem(java.lang.String itemText)

waitForResultsToContain

public void waitForResultsToContain(TitledContent contentEntity)
Checks that the given ContentEntityObject appears in the dropdown menu.


waitUntilQuickSearchNotBusy

public void waitUntilQuickSearchNotBusy()

waitForResultToBeSelected

public void waitForResultToBeSelected(int resultIndex)


Copyright © 2003-2010 Atlassian. All Rights Reserved.