com.atlassian.confluence.selenium.client
Class QuickNavBox

java.lang.Object
  extended by com.atlassian.confluence.selenium.client.QuickNavBox
Direct Known Subclasses:
QuickSearch

public class QuickNavBox
extends java.lang.Object

Represents a Quick-Navigation box that accepts keystrokes and displays a list of search results that a user may select from.

See Also:
ContentNameSearchAction

Constructor Summary
QuickNavBox(ConfluenceSeleniumClient client, java.lang.String elementId, java.lang.String listContainerSelector)
           
QuickNavBox(ConfluenceSeleniumClient client, java.lang.String elementId, java.lang.String listContainerSelector, boolean singleList)
           
 
Method Summary
 void clickResult(java.lang.String name)
           
 void clickSearchFor()
           
 java.lang.String getResultTitle(java.lang.String name)
           
 java.lang.String getValue()
           
 void pressDown()
          Press the up/down arrow key in the quick navigation box.
 void pressUp()
           
 void select()
           
 void type(java.lang.String text)
           
 void waitForNumberOfResults(int expectedResults)
           
 void waitForResultsToContainExactEntry(java.lang.String name)
           
 void waitForResultsToPartiallyContain(java.lang.String partialName)
           
 void waitForResultToBeSelected(int resultIndex)
           
 void waitUntilVisible()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuickNavBox

public QuickNavBox(ConfluenceSeleniumClient client,
                   java.lang.String elementId,
                   java.lang.String listContainerSelector)

QuickNavBox

public QuickNavBox(ConfluenceSeleniumClient client,
                   java.lang.String elementId,
                   java.lang.String listContainerSelector,
                   boolean singleList)
Method Detail

type

public void type(java.lang.String text)

waitUntilVisible

public void waitUntilVisible()

waitForNumberOfResults

public void waitForNumberOfResults(int expectedResults)

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(java.lang.String name)

waitForResultToBeSelected

public void waitForResultToBeSelected(int resultIndex)

pressDown

public void pressDown()
Press the up/down arrow key in the quick navigation box. #CONF-17347 Firefox plays up with the Atlassian keyPress() method inputing extra characters in the textbox and selecting items from dropdown for only a brief moment. Therefore needs this hack.


pressUp

public void pressUp()

getValue

public java.lang.String getValue()
Returns:
the current element value

select

public void select()


Copyright © 2003-2014 Atlassian. All Rights Reserved.