SelectElement Class
Web element of type Select
Inheritance Hierarchy
SystemObject
  SeleniumSelectElement

Namespace: Selenium
Assembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax
VB Usage
Dim instance As SelectElement

The SelectElement type exposes the following members.

Methods
  NameDescription
Public methodDeselectAll
Clear all selected entries. This is only valid when the SELECT supports multiple selections.
Public methodDeselectByIndex
Deselect the option by the index, as determined by the "index" attribute of the element.
Public methodDeselectByText
Deselect the option by the text displayed.
Public methodDeselectByValue
Deselect the option having value matching the specified text.
Public methodSelectByIndex
Select the option by the index, as determined by the "index" attribute of the element.
Public methodSelectByText
Select all options by the text displayed.
Public methodSelectByValue
Select an option by the value.
Top
Properties
  NameDescription
Public propertyAllSelectedOptions
Gets all of the selected options within the select element.
Public propertyIsMultiple
Gets a value indicating whether the parent element supports multiple selections.
Public propertyOptions
Gets the list of options for the select element.
Public propertySelectedOption
Gets the selected item within the select element.
Top
Examples
Select an element by text
driver.FindElementById("select").AsSelect.SelectByText "Option Two"
See Also