abstract class ComboBox.SapSelect extends ComboBox.AbstractSelect
CLASS_NAME, isMulti
parent
Constructor and Description |
---|
ComboBox.SapSelect(Component component) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
getOptionsJSObject()
Execute javascript function to get a set of option object.
Normally the option javascript object will contain a few of properties, this object will be returned as a java Map object. |
void |
hidePopup() |
boolean |
isSupported(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.
|
protected void |
setJavaScriptComboboxObject(WebElement element,
java.lang.StringBuffer jsScript) |
void |
showPopup() |
getOptions, selectByVisibleText
clearCache, deselectAll, deselectByIndex, deselectByValue, deselectByVisibleText, escapeQuotes, getAllSelectedOptions, getAllSelectedOptionsText, getFirstSelectedOption, getItemByIndex, getLongestSubstringWithoutSpace, getOptionsValue, getOptionsVisibleText, getOptionValue, getOptionVisibleText, getSupportedClassNames, isMultiple, isSelected, selectByIndex, selectByValue, setSelected
refresh, webelement
public ComboBox.SapSelect(Component component) throws SeleniumPlusException
webelement
- SeleniumPlusException
protected void setJavaScriptComboboxObject(WebElement element, java.lang.StringBuffer jsScript)
public boolean isSupported(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.HtmlSelect
element
- WebElement, the element to check.org.safs.selenium.webdriver.lib.HtmlSelect#isSupported(WebElement)
protected boolean selectOption(java.lang.Object optionObject)
selectOption
in class ComboBox.HtmlSelect
protected java.lang.Object getOptionsJSObject()
getOptionsJSObject
in class ComboBox.AbstractSelect
ComboBox.AbstractSelect.getOptions()
public void hidePopup() throws SeleniumPlusException
hidePopup
in interface ComboBox.Selectable
hidePopup
in class ComboBox.HtmlSelect
SeleniumPlusException
public void showPopup() throws SeleniumPlusException
showPopup
in interface ComboBox.Selectable
showPopup
in class ComboBox.HtmlSelect
SeleniumPlusException