SelectElement ClassWebDriver
Provides a convenience method for manipulating selections of options in an HTML select element.
Inheritance Hierarchy

SystemObject
  OpenQA.Selenium.Support.UISelectElement

Namespace: OpenQA.Selenium.Support.UI
Assembly: WebDriver.Support (in WebDriver.Support.dll) Version: 3.1.0
Syntax

public class SelectElement : IWrapsElement

The SelectElement type exposes the following members.

Constructors

  NameDescription
Public methodSelectElement
Initializes a new instance of the SelectElement class.
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.
Public propertyWrappedElement
Gets the IWebElement wrapped by this object.
Top
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 methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
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.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
See Also

Reference