public interface IDropDown extends IEditableElement
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getOptions()
Implementing this method would allow for obtaining all of the options
from the dropdown widget
|
String |
getSelectedOption()
Implementing this method would allow for checking which option was
selected from the dropdown menu
|
void |
selectOption(String option)
Implementing this method would allow for selecting specific items from a
dropdown menu
|
setValueclick, clickAndHold, doubleClick, dragAndDrop, dragAndDropByOffset, isEnabled, keyDown, keyUp, mouseMove, mouseMoveOut, mouseOver, releaseClickAndHold, rightClick, sendKeys, type, typeAppendgetLabel, getValueeval, fireEvent, focusOn, getAttribute, getByLocator, getChildNodesValuesText, getCssValue, getInnerHTML, getLocationX, getLocationY, getLocator, getText, getWebElement, hasText, highlight, highlight, isAttributePresent, isElementNotPresent, isElementNotPresent, isElementPresent, isElementPresent, isElementPresent, isElementVisible, isElementVisible, isWithinBoundsOfWindow, scrollTo, waitForAttribute, waitForAttribute, waitForAttributeEqualTo, waitForAttributeEqualTo, waitForAttributeNotEqualTo, waitForAttributeNotEqualTo, waitForElementNotPresent, waitForElementNotPresent, waitForElementPresent, waitForElementPresent, waitForEnabled, waitForEnabled, waitForNotAttribute, waitForNotAttribute, waitForNotVisible, waitForNotVisible, waitForText, waitForText, waitForVisible, waitForVisiblevoid selectOption(String option) throws WidgetException
option - - the item in the DropDown widget that is to be selectedWidgetExceptionList<String> getOptions() throws WidgetException
WidgetExceptionString getSelectedOption() throws WidgetException
WidgetExceptionCopyright © 2018. All rights reserved.