com.atlassian.jira.webtest.selenium.framework.components
Class LabelsPicker

java.lang.Object
  extended by com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
      extended by com.atlassian.jira.webtest.selenium.framework.components.LabelsPicker
All Implemented Interfaces:
PageObject

public class LabelsPicker
extends AbstractSeleniumPageObject

Selenium representation of the AUI.LabelsPicker component, which is a specialized MultiSelect.

Since:
v4.2

Field Summary
protected  Locator inputAreaLocator
          Deprecated.  
static String LABELS_SYSTEM_FIELD_NAME
           
protected  MultiSelectLocatorData locators
          Deprecated.  
 
Fields inherited from class com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
assertThat, client, context
 
Method Summary
 String anyFocusedPickedElementLocator()
          Deprecated.  
 String anyPickedElementLocator()
          Deprecated.  
 void assertElementNotPicked(String value)
          Deprecated.  
 void assertElementPicked(String value)
          Deprecated.  
 void assertNoElementPicked()
          Deprecated.  
 void assertReady(long timeout)
          Deprecated. Assert that this object is loaded and ready to be exercised by Selenium.
 T awayFromInputArea()
          Deprecated. Removes focus from the input area of the picker, which will trigger processing of the previously inserted queries and close the suggestions drop-down.
 T clearInputArea()
          Deprecated. Clear input area from any previously inserted text.
 T confirmInput()
          Deprecated. Press enter in the input area to confirm current option (the one selected in suggestions drop-down).
protected  MultiSelectSuggestions<T> createSuggestions()
          Deprecated. Factory method for the suggestions control.
 T deleteSelection()
          Deprecated.  
 String dropDownIconLocator()
          Deprecated.  
 String focusedSuggestion()
          Deprecated.  
 T focusOnInputArea()
          Deprecated.  
 int getFocusedLozengesCount()
          Deprecated.  
 int getFocusedSuggestionIndex()
          Deprecated.  
 int getFocusedSuggestionsCount()
          Deprecated.  
 int getLozengesCount()
          Deprecated.  
 boolean hasAnyFocusedPickedElement()
          Deprecated.  
 String inputAreaLocator()
          Deprecated.  
 Locator inputLocatorObject()
          Deprecated.  
 T insertQuery(String query)
          Deprecated.  
 T insertQueryFast(String query)
          Deprecated. Will invoke all picker events only for the last character in the query.
 String locator()
          Deprecated.  
 String locatorWithin(String locator)
          Deprecated. Returns jQuery locator in context of this MultiSelect control.
static LabelsPicker newCustomFieldLabelsPicker(String contextLocator, int fieldId, SeleniumContext ctx)
           
static LabelsPicker newSystemLabelsPicker(String contextLocator, SeleniumContext ctx)
           
 T nextSuggestion()
          Deprecated.  
 String pickedElementLocator(String pickedElemValue)
          Deprecated.  
 T prevSuggestion()
          Deprecated.  
 T selectAll()
          Deprecated.  
 String selectModelLocator()
          Deprecated.  
 MultiSelectSuggestions<T> suggestions()
          Deprecated.  
 String suggestionsLocator()
          Deprecated.  
 MultiSelectSuggestions<T> triggerSuggestionsByArrowDown()
          Deprecated.  
 MultiSelectSuggestions<T> triggerSuggestionsByClick()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABELS_SYSTEM_FIELD_NAME

public static final String LABELS_SYSTEM_FIELD_NAME
See Also:
Constant Field Values

locators

protected final MultiSelectLocatorData locators
Deprecated. 

inputAreaLocator

protected final Locator inputAreaLocator
Deprecated. 
Method Detail

newSystemLabelsPicker

public static LabelsPicker newSystemLabelsPicker(String contextLocator,
                                                 SeleniumContext ctx)

newCustomFieldLabelsPicker

public static LabelsPicker newCustomFieldLabelsPicker(String contextLocator,
                                                      int fieldId,
                                                      SeleniumContext ctx)

createSuggestions

protected MultiSelectSuggestions<T> createSuggestions()
Deprecated. 
Factory method for the suggestions control.

Returns:
new instance of the suggestions drop-down part of this picker.

locator

public String locator()
Deprecated. 

inputAreaLocator

public String inputAreaLocator()
Deprecated. 

inputLocatorObject

public Locator inputLocatorObject()
Deprecated. 

suggestionsLocator

public String suggestionsLocator()
Deprecated. 

selectModelLocator

public String selectModelLocator()
Deprecated. 

dropDownIconLocator

public String dropDownIconLocator()
Deprecated. 

pickedElementLocator

public String pickedElementLocator(String pickedElemValue)
Deprecated. 

anyPickedElementLocator

public String anyPickedElementLocator()
Deprecated. 

anyFocusedPickedElementLocator

public String anyFocusedPickedElementLocator()
Deprecated. 

focusedSuggestion

public String focusedSuggestion()
Deprecated. 

locatorWithin

public String locatorWithin(String locator)
Deprecated. 
Returns jQuery locator in context of this MultiSelect control.

Parameters:
locator - raw jQuery locator
Returns:
contextualized jQuery locator referring to locator withing context of this MultiSelect

getLozengesCount

public int getLozengesCount()
Deprecated. 

getFocusedLozengesCount

public int getFocusedLozengesCount()
Deprecated. 

getFocusedSuggestionsCount

public int getFocusedSuggestionsCount()
Deprecated. 

getFocusedSuggestionIndex

public int getFocusedSuggestionIndex()
Deprecated. 

hasAnyFocusedPickedElement

public boolean hasAnyFocusedPickedElement()
Deprecated. 

suggestions

public MultiSelectSuggestions<T> suggestions()
Deprecated. 

focusOnInputArea

public T focusOnInputArea()
Deprecated. 

insertQuery

public T insertQuery(String query)
Deprecated. 

insertQueryFast

public T insertQueryFast(String query)
Deprecated. 
Will invoke all picker events only for the last character in the query.

Parameters:
query - query to insert
Returns:
this picker instance

deleteSelection

public T deleteSelection()
Deprecated. 

selectAll

public T selectAll()
Deprecated. 

prevSuggestion

public T prevSuggestion()
Deprecated. 

nextSuggestion

public T nextSuggestion()
Deprecated. 

clearInputArea

public T clearInputArea()
Deprecated. 
Clear input area from any previously inserted text.

Returns:
this picker instance

awayFromInputArea

public T awayFromInputArea()
Deprecated. 
Removes focus from the input area of the picker, which will trigger processing of the previously inserted queries and close the suggestions drop-down.

Returns:
this picker instance

confirmInput

public T confirmInput()
Deprecated. 
Press enter in the input area to confirm current option (the one selected in suggestions drop-down).

Returns:
this picker instance

triggerSuggestionsByArrowDown

public MultiSelectSuggestions<T> triggerSuggestionsByArrowDown()
Deprecated. 

triggerSuggestionsByClick

public MultiSelectSuggestions<T> triggerSuggestionsByClick()
Deprecated. 

assertReady

public void assertReady(long timeout)
Deprecated. 
Assert that this object is loaded and ready to be exercised by Selenium.

Specified by:
assertReady in interface PageObject
Parameters:
timeout - timeout to wait

assertNoElementPicked

public void assertNoElementPicked()
Deprecated. 

assertElementPicked

public void assertElementPicked(String value)
Deprecated. 

assertElementNotPicked

public void assertElementNotPicked(String value)
Deprecated. 


Copyright © 2002-2013 Atlassian. All Rights Reserved.