public class SeleniumSimpleSelectWebElement extends SeleniumWComponentWebElement
| Modifier and Type | Field and Description |
|---|---|
static String |
SELECTOR_NTH_OPTION
The CSS Selector for the Nth option.
|
static String |
TOP_LEVEL_TAG
HTML tagName for the select element.
|
| Constructor and Description |
|---|
SeleniumSimpleSelectWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
Default constructor for this element.
|
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebElement |
getFirstOption() |
org.openqa.selenium.WebElement |
getLastOption() |
SeleniumWComponentWebElement |
getNthOption(int optionNumber) |
org.openqa.selenium.WebElement |
getOption(String optionText)
Get an option based on its visible text.
|
List<org.openqa.selenium.WebElement> |
getOptions() |
org.openqa.selenium.WebElement |
getSelectedOption() |
List<org.openqa.selenium.WebElement> |
getSelectedOptions() |
String |
getValue() |
boolean |
isMultiSelect()
Is the component a multi-select list?
|
clear, click, clickElementNoWait, clickNoWait, findElement, findElementImmediate, findElements, findElementsImmediate, getActiveId, getAttribute, getCssValue, getDriver, getElement, getLocation, getRect, getScreenshotAs, getSize, getTagName, getText, getUserContextForSession, isDisplayed, isEnabled, isHidden, isSelected, sendKeys, submit, waitForPageReady, wrapElementpublic static final String TOP_LEVEL_TAG
public static final String SELECTOR_NTH_OPTION
public SeleniumSimpleSelectWebElement(org.openqa.selenium.WebElement element,
org.openqa.selenium.WebDriver driver)
element - the WebElementdriver - the driver.public String getValue()
public org.openqa.selenium.WebElement getSelectedOption()
public org.openqa.selenium.WebElement getFirstOption()
public org.openqa.selenium.WebElement getLastOption()
public SeleniumWComponentWebElement getNthOption(int optionNumber)
optionNumber - - thepublic boolean isMultiSelect()
true if the component is a multi-selectpublic List<org.openqa.selenium.WebElement> getOptions()
public List<org.openqa.selenium.WebElement> getSelectedOptions()
public org.openqa.selenium.WebElement getOption(String optionText)
optionText - the text of the option we are trying to findCopyright © 2017. All rights reserved.