public class SelectList extends Editable
Constructor and Description |
---|
SelectList(Page parentValue,
org.openqa.selenium.By locatorValue)
Default constructor which binds page the control belongs to and the locator to
find the element on page.
|
Modifier and Type | Method and Description |
---|---|
org.openqa.selenium.support.ui.Select |
getSelect()
Initialises and returns core Select object from WebDriver client library.
|
SelectList |
selectByText(java.lang.String value)
Performs list item selection by the text specified.
|
Editable |
setValue(java.lang.String value)
Common method for setting values.
|
addSubItems, element, element, get, getDriver, getFormat, getItemLocatorText, getLocator, getLocatorText, getParent, getRect, getScrollDirection, getScrollTo, getText, getValue, is, isExcludeFromSearch, perform, scrollTo, setExcludeFromSearch, setFormat, setItemLocatorText, setScrollDirection, setScrollTo, verify, waitUntil
public SelectList(Page parentValue, org.openqa.selenium.By locatorValue)
parentValue
- the instance of the page class containing current control.locatorValue
- the string used to locate current control.public org.openqa.selenium.support.ui.Select getSelect()
public SelectList selectByText(java.lang.String value)
value
- the value of item to select.