protected abstract static class ComboBox.DojoSelect extends ComboBox.AbstractSelect
ComboBox.Selectable,
ComboBox.HtmlSelect| Modifier and Type | Field and Description |
|---|---|
protected org.openqa.selenium.WebElement |
popup
popup is the popup menu associated with the combo box.
It can be used to handle each 'menu item' (the combo box option) For now, it has not been used yet. |
CLASS_NAME, isMulti, supportedClazzesparent| Constructor and Description |
|---|
DojoSelect(Component component) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
dojo_HasDropDown_closeDropDown()
Close the drop-down menu.
|
protected boolean |
dojo_HasDropDown_isLoaded()
Some Dojo Combo-box (dijit.form.ComboBox, dijit.form.Select etc.) contains a drop-down menu,
but the drop-down will not be loaded until you trigger it by click the combo-box-button or calling combo-box API. |
protected boolean |
dojo_HasDropDown_loadAndOpenDropDown()
Some Dojo Combo-box (dijit.form.ComboBox, dijit.form.Select etc.) contains a drop-down menu,
but the drop-down will not be loaded until you trigger it by click the combo-box-button or calling combo-box API. |
protected boolean |
dojo_HasDropDown_openDropDown()
Open the drop-down menu.
|
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. |
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. |
void |
hidePopup() |
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 optionObject)
Select an option of a combo box.
|
void |
showPopup() |
getOptions, selectByVisibleTextclearCache, deselectAll, deselectByIndex, deselectByValue, deselectByVisibleText, escapeQuotes, getAllSelectedOptions, getAllSelectedOptionsText, getFirstSelectedOption, getItemByIndex, getLongestSubstringWithoutSpace, getOptionsValue, getOptionsVisibleText, getOptionValue, getOptionVisibleText, getSupportedClassNames, isMultiple, isSelected, selectByIndex, selectByValue, setSelectedisShowOnPage, refresh, webelementprotected org.openqa.selenium.WebElement popup
public DojoSelect(Component component) throws SeleniumPlusException
SeleniumPlusExceptionpublic boolean isSupported(org.openqa.selenium.WebElement element)
ComboBox.HtmlSelectComboBox.HtmlSelect or subclass. HtmlSelect#HtmlSelect(WebElement) or constructor of subclass,ComboBox.HtmlSelect or subclass.isSupported in interface SupportableisSupported in class ComboBox.HtmlSelectelement - WebElement, the element to check.org.safs.selenium.webdriver.lib.HtmlSelect#isSupported(WebElement)protected org.openqa.selenium.WebElement getPopup()
protected boolean dojo_HasDropDown_isLoaded()
protected boolean dojo_HasDropDown_loadAndOpenDropDown()
protected boolean dojo_HasDropDown_closeDropDown()
protected boolean dojo_HasDropDown_openDropDown()
protected boolean selectOption(java.lang.Object optionObject)
selectOption in class ComboBox.HtmlSelectprotected java.lang.Object getOptionsJSObject()
ComboBox.AbstractSelectgetOptionsJSObject in class ComboBox.AbstractSelectComboBox.AbstractSelect.getOptions(),
ComboBox.AbstractSelect.getOptions()public void hidePopup()
throws SeleniumPlusException
hidePopup in interface ComboBox.SelectablehidePopup in class ComboBox.HtmlSelectSeleniumPlusExceptionpublic void showPopup()
throws SeleniumPlusException
showPopup in interface ComboBox.SelectableshowPopup in class ComboBox.HtmlSelectSeleniumPlusExceptionCopyright © SAS Institute. All Rights Reserved.