public class SeleniumSelect extends Object
| 构造器和说明 |
|---|
SeleniumSelect(JavascriptLibrary library,
ElementFinder finder,
WebDriver driver,
String locator) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addSelection(String optionLocator) |
WebElement |
findOption(String optionLocator) |
List<WebElement> |
getAllOptions() |
List<WebElement> |
getSelectedOptions() |
void |
removeSelection(String optionLocator) |
void |
setSelected(String optionLocator) |
public SeleniumSelect(JavascriptLibrary library, ElementFinder finder, WebDriver driver, String locator)
public void setSelected(String optionLocator)
public void addSelection(String optionLocator)
public void removeSelection(String optionLocator)
public List<WebElement> getSelectedOptions()
public WebElement findOption(String optionLocator)
public List<WebElement> getAllOptions()