Package jp.vmi.selenium.selenese.command
Class SelectElement
java.lang.Object
jp.vmi.selenium.selenese.command.SelectElement
public class SelectElement extends Object
Select element.
-
Field Summary
Fields Modifier and Type Field Description booleanisMultipletrue if "select" element is multiple select box. -
Constructor Summary
Constructors Constructor Description SelectElement(Context context, String selectLocator)Constructor. -
Method Summary
Modifier and Type Method Description ResultselectOptions(String optionLocator, boolean selectOrDeselect)Select or remove the specified options.voidunsetOptions()Unset options if "select" is multiple.
-
Field Details
-
isMultiple
public final boolean isMultipletrue if "select" element is multiple select box.
-
-
Constructor Details
-
SelectElement
Constructor.- Parameters:
context- context.selectLocator- select locator.
-
-
Method Details
-
unsetOptions
public void unsetOptions()Unset options if "select" is multiple. -
selectOptions
Select or remove the specified options.- Parameters:
optionLocator- option locator.selectOrDeselect- select the option if true, or deselect it if false.- Returns:
- result of selecting options.
-