public interface ISelectList extends IEditableElement
Modifier and Type | Method and Description |
---|---|
void |
deselectAllOptions()
Implementing this method would allow for deselecting any options in the
list that have been selected
|
List<String> |
getOptions()
Implementing this method would allow for getting all options in the list
|
String |
getSelectedOption()
Implementing this method would allow for getting the text of the
currently selected option
|
List<String> |
getSelectedOptions()
Implementing this method would allow for getting the currently selected
options in the list
|
void |
selectMultipleOptions(List<String> options)
Implementing this method would allow for selecting multiple options in
the list based on the text
|
void |
selectOption(String option)
Implementing this method would allow for selecting a specific option from
the list
|
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
List<String> getOptions() throws WidgetException
WidgetException
List<String> getSelectedOptions() throws WidgetException
WidgetException
void selectOption(String option) throws WidgetException
option
- - the option that is to be selectedWidgetException
String getSelectedOption() throws WidgetException
WidgetException
void selectMultipleOptions(List<String> options) throws WidgetException
options
- - the list containing the text of the elements to be selectedWidgetException
void deselectAllOptions() throws WidgetException
WidgetException
Copyright © 2018. All rights reserved.