public class SelectElement extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
isMultiple
true if "select" element is multiple select box.
|
org.openqa.selenium.WebElement |
select
"select" element.
|
| Constructor and Description |
|---|
SelectElement(Context context,
String selectLocator)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
selectOptions(String optionLocator,
boolean doSelect)
Select or remove the specified options.
|
void |
unsetOptions()
Unset options if "select" is multiple.
|
public final org.openqa.selenium.WebElement select
public final boolean isMultiple
public void unsetOptions()
public void selectOptions(String optionLocator, boolean doSelect)
optionLocator - option locator.doSelect - do select the option if true, or do remove if false.Copyright © 2017. All rights reserved.