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

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

public final class GenericMultiSelect
extends AbstractSeleniumPageObject

Generic MultiSelect representation.

Since:
v4.2

Field Summary
protected  Locator inputAreaLocator
          Deprecated.  
protected  MultiSelectLocatorData locators
          Deprecated.  
 
Fields inherited from class com.atlassian.jira.webtest.selenium.framework.core.AbstractSeleniumPageObject
assertThat, client, context
 
Constructor Summary
GenericMultiSelect(String contextLocator, int customFieldId, SeleniumContext ctx)
          Create new MultiSelect for a picker associated with a JIRA custom field.
GenericMultiSelect(String contextLocator, String fieldName, SeleniumContext ctx)
          Create new MultiSelect with custom field name.
 
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.
 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

locators

protected final MultiSelectLocatorData locators
Deprecated. 

inputAreaLocator

protected final Locator inputAreaLocator
Deprecated. 
Constructor Detail

GenericMultiSelect

public GenericMultiSelect(String contextLocator,
                          String fieldName,
                          SeleniumContext ctx)
Create new MultiSelect with custom field name.

Parameters:
contextLocator - context locator (in case there is more than one picker on the page). If empty, the picker locator will be considered global within the page (discouraged)
fieldName - name of the field associated with this MultiSelect
ctx - Selenium context

GenericMultiSelect

public GenericMultiSelect(String contextLocator,
                          int customFieldId,
                          SeleniumContext ctx)
Create new MultiSelect for a picker associated with a JIRA custom field.

Parameters:
contextLocator - context locator (in case there is more than one picker on the page). If empty, the picker locator will be considered global within the page (discouraged)
customFieldId - custom field ID
ctx - Selenium context
Method Detail

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-2012 Atlassian. All Rights Reserved.