protected static class ComboBox.DojoSelect_Select extends ComboBox.DojoSelect
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_DOJO_SELECT |
static java.lang.String |
CLASS_DOJO_SELECT_BUTTON |
static java.lang.String |
CLASS_DOJO_SELECT_INPUT |
static java.lang.String |
CLASS_DOJO_SELECT_MENU |
static java.lang.String |
CLASS_DOJO_SELECT_MENU_LABEL |
static java.lang.String |
CLASS_DOJO_SELECT_MENUITEM |
static java.lang.String |
CLASS_DOJO_SELECT_POPUP |
static java.lang.String |
CLASS_MENU_ITEM_LABEL |
static java.lang.String |
CLASS_NAME |
static java.lang.String |
CLASS_POPUP_NAME |
static java.lang.String[] |
supportedClazzes |
static java.lang.String |
TAG_DOJO_SELECT |
static java.lang.String |
TAG_DOJO_SELECT_POPUP |
popup
isMulti
parent
Constructor and Description |
---|
DojoSelect_Select(Component component) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
getOptionsJSObject()
Execute javascript function to get a set of option object, the set may be returned as List.
Normally the option javascript object will contain a few of properties, this object may be returned as a java Map object. |
java.util.List<java.lang.String> |
getOptionsValue() |
java.util.List<java.lang.String> |
getOptionsVisibleText() |
java.lang.String |
getOptionValue(int index) |
java.lang.String |
getOptionVisibleText(int index) |
protected org.openqa.selenium.WebElement |
getPopup()
Some DOJO combo-box has an associated popup-menu, which can be used to select/click/count item.
This function will click the combo-box's button to load and show the associated popup-menu, then find the popup-menu. |
java.lang.String[] |
getSupportedClassNames() |
boolean |
isSupported(org.openqa.selenium.WebElement element)
The element will be used to create an instance of class
ComboBox.HtmlSelect or subclass. |
protected boolean |
selectOption(java.lang.Object option)
Select an option of a combo box.
|
dojo_HasDropDown_closeDropDown, dojo_HasDropDown_isLoaded, dojo_HasDropDown_loadAndOpenDropDown, dojo_HasDropDown_openDropDown, hidePopup, showPopup
getOptions, selectByVisibleText
clearCache, deselectAll, deselectByIndex, deselectByValue, deselectByVisibleText, escapeQuotes, getAllSelectedOptions, getAllSelectedOptionsText, getFirstSelectedOption, getItemByIndex, getLongestSubstringWithoutSpace, isMultiple, isSelected, selectByIndex, selectByValue, setSelected
isShowOnPage, refresh, webelement
public static final java.lang.String CLASS_NAME
public static final java.lang.String CLASS_DOJO_SELECT
public static final java.lang.String TAG_DOJO_SELECT
public static final java.lang.String CLASS_DOJO_SELECT_INPUT
public static final java.lang.String CLASS_DOJO_SELECT_BUTTON
public static final java.lang.String CLASS_POPUP_NAME
public static final java.lang.String CLASS_DOJO_SELECT_POPUP
public static final java.lang.String TAG_DOJO_SELECT_POPUP
public static final java.lang.String CLASS_DOJO_SELECT_MENU
public static final java.lang.String CLASS_DOJO_SELECT_MENUITEM
public static final java.lang.String CLASS_DOJO_SELECT_MENU_LABEL
public static final java.lang.String[] supportedClazzes
public static final java.lang.String CLASS_MENU_ITEM_LABEL
public DojoSelect_Select(Component component) throws SeleniumPlusException
SeleniumPlusException
public java.lang.String[] getSupportedClassNames()
getSupportedClassNames
in interface Supportable
getSupportedClassNames
in class ComboBox.HtmlSelect
org.safs.selenium.webdriver.lib.DojoSelect#getSupportedClassNames()
public boolean isSupported(org.openqa.selenium.WebElement element)
ComboBox.HtmlSelect
ComboBox.HtmlSelect
or subclass. HtmlSelect#HtmlSelect(WebElement)
or constructor of subclass,ComboBox.HtmlSelect
or subclass.isSupported
in interface Supportable
isSupported
in class ComboBox.DojoSelect
element
- WebElement, the element to check.org.safs.selenium.webdriver.lib.HtmlSelect#isSupported(WebElement)
protected org.openqa.selenium.WebElement getPopup()
ComboBox.DojoSelect
getPopup
in class ComboBox.DojoSelect
org.safs.selenium.webdriver.lib.DojoSelect#getPopup()
public java.util.List<java.lang.String> getOptionsVisibleText()
getOptionsVisibleText
in interface ComboBox.Selectable
getOptionsVisibleText
in class ComboBox.HtmlSelect
public java.util.List<java.lang.String> getOptionsValue()
getOptionsValue
in interface ComboBox.Selectable
getOptionsValue
in class ComboBox.HtmlSelect
public java.lang.String getOptionVisibleText(int index)
getOptionVisibleText
in interface ComboBox.Selectable
getOptionVisibleText
in class ComboBox.HtmlSelect
index
- int, the index for an option, 0-based.public java.lang.String getOptionValue(int index)
getOptionValue
in interface ComboBox.Selectable
getOptionValue
in class ComboBox.HtmlSelect
index
- int, the index for an option, 0-based.protected java.lang.Object getOptionsJSObject()
ComboBox.AbstractSelect
getOptionsJSObject
in class ComboBox.DojoSelect
ComboBox.AbstractSelect.getOptions()
,
ComboBox.AbstractSelect.getOptions()
protected boolean selectOption(java.lang.Object option)
ComboBox.DojoSelect
selectOption
in class ComboBox.DojoSelect
Copyright © SAS Institute. All Rights Reserved.