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
|
setValue
click, clickAndHold, doubleClick, dragAndDrop, dragAndDropByOffset, isEnabled, keyDown, keyUp, mouseMove, mouseMoveOut, mouseOver, releaseClickAndHold, rightClick, sendKeys, type, typeAppend
getLabel, getValue
eval, 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, waitForVisible
void selectOption(String option) throws WidgetException
option
- - the item in the DropDown widget that is to be selectedWidgetException
List<String> getOptions() throws WidgetException
WidgetException
String getSelectedOption() throws WidgetException
WidgetException
Copyright © 2018. All rights reserved.