SelectElement Class |
Namespace: Selenium
Dim instance As SelectElement
The SelectElement type exposes the following members.
Name | Description | |
---|---|---|
DeselectAll |
Clear all selected entries. This is only valid when the SELECT supports multiple selections.
| |
DeselectByIndex |
Deselect the option by the index, as determined by the "index" attribute of the element.
| |
DeselectByText |
Deselect the option by the text displayed.
| |
DeselectByValue |
Deselect the option having value matching the specified text.
| |
SelectByIndex |
Select the option by the index, as determined by the "index" attribute of the element.
| |
SelectByText |
Select all options by the text displayed.
| |
SelectByValue |
Select an option by the value.
|
Name | Description | |
---|---|---|
AllSelectedOptions |
Gets all of the selected options within the select element.
| |
IsMultiple |
Gets a value indicating whether the parent element supports multiple selections.
| |
Options |
Gets the list of options for the select element.
| |
SelectedOption |
Gets the selected item within the select element.
|
driver.FindElementById("select").AsSelect.SelectByText "Option Two"