public class Select extends InteractiveElement implements ISelectList
Element.HIGHLIGHT_MODES
Constructor and Description |
---|
Select(org.openqa.selenium.By locator) |
Select(String locator) |
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
|
Object |
getValue()
Throw Unsupported Operation exception if getValue() on Interactive element is invoked
|
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
|
void |
setValue(Object value)
Implementing this method for an editable element would allow for setting
the
|
click, clickAndHold, doubleClick, dragAndDrop, dragAndDropByOffset, getLabel, isEnabled, keyDown, keyUp, mouseMove, mouseMoveOut, mouseOver, releaseClickAndHold, rightClick, sendKeys, type, typeAppend
eval, findElement, fireEvent, focusOn, getAttribute, getByLocator, getChildNodesValuesText, getCssValue, getGUIDriver, getInnerHTML, getLocationX, getLocationY, getLocator, getText, getWebElement, hasText, highlight, highlight, highlight, isAttributePresent, isElementNotPresent, isElementNotPresent, isElementPresent, isElementPresent, isElementPresent, isElementVisible, isElementVisible, isWithinBoundsOfWindow, scrollTo, setGUIDriver, waitForAttribute, waitForAttribute, waitForAttributeEqualTo, waitForAttributeEqualTo, waitForAttributeNotEqualTo, waitForAttributeNotEqualTo, waitForCommand, waitForElementNotPresent, waitForElementNotPresent, waitForElementPresent, waitForElementPresent, waitForEnabled, waitForEnabled, waitForNotAttribute, waitForNotAttribute, waitForNotVisible, waitForNotVisible, waitForText, waitForText, waitForVisible, waitForVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
click, clickAndHold, doubleClick, dragAndDrop, dragAndDropByOffset, isEnabled, keyDown, keyUp, mouseMove, mouseMoveOut, mouseOver, releaseClickAndHold, rightClick, sendKeys, type, typeAppend
getLabel
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
public Select(String locator)
public Select(org.openqa.selenium.By locator)
public void setValue(Object value) throws WidgetException
IEditableElement
setValue
in interface IEditableElement
value
- - the value that the editable elementWidgetException
public void selectOption(String option) throws WidgetException
ISelectList
selectOption
in interface ISelectList
option
- - the option that is to be selectedWidgetException
public void selectMultipleOptions(List<String> options) throws WidgetException
ISelectList
selectMultipleOptions
in interface ISelectList
options
- - the list containing the text of the elements to be selectedWidgetException
public Object getValue() throws WidgetException
InteractiveElement
getValue
in interface IReadableElement
getValue
in class InteractiveElement
WidgetException
public String getSelectedOption() throws WidgetException
ISelectList
getSelectedOption
in interface ISelectList
WidgetException
public List<String> getOptions() throws WidgetException
ISelectList
getOptions
in interface ISelectList
WidgetException
public List<String> getSelectedOptions() throws WidgetException
ISelectList
getSelectedOptions
in interface ISelectList
WidgetException
public void deselectAllOptions() throws WidgetException
ISelectList
deselectAllOptions
in interface ISelectList
WidgetException
Copyright © 2018. All rights reserved.