Class Select
Defines a
Implements
Inherited Members
Namespace: Legerity.Web.Elements.Core
Assembly: Legerity.Web.dll
Syntax
public class Select : WebElementWrapper, IElementWrapper<RemoteWebElement>
Constructors
| Improve this Doc View SourceSelect(IWebElement)
Initializes a new instance of the Select class.
Declaration
public Select(IWebElement element)
Parameters
Type | Name | Description |
---|---|---|
IWebElement | element | The |
Select(RemoteWebElement)
Initializes a new instance of the Select class.
Declaration
public Select(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Properties
| Improve this Doc View SourceIsMultiple
Gets a value indicating whether multiple items can be selected.
Declaration
public virtual bool IsMultiple { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Options
Gets the collection of items associated with the select.
Declaration
public virtual IEnumerable<Option> Options { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Option> |
SelectedOption
Gets the selected item when in a single selection state.
Declaration
public virtual Option SelectedOption { get; }
Property Value
Type | Description |
---|---|
Option |
SelectedOptions
Gets the selected items when in a multiple selection state.
Declaration
public virtual IEnumerable<Option> SelectedOptions { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Option> |
Methods
| Improve this Doc View SourceSelectOptionByDisplayValue(String)
Selects an item in the select element with the specified display value.
Declaration
public virtual void SelectOptionByDisplayValue(string displayValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | displayValue | The display value of the item to select. |
SelectOptionByPartialDisplayValue(String)
Selects an item in the select element with the specified partial display value.
Declaration
public virtual void SelectOptionByPartialDisplayValue(string partialDisplayValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | partialDisplayValue | The partial display value of the item to select. |
SelectOptionByPartialValue(String)
Selects an item in the select element with the specified partial value.
Declaration
public virtual void SelectOptionByPartialValue(string partialValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | partialValue | The partial value of the item to select. |
SelectOptionByValue(String)
Selects an item in the select element with the specified value.
Declaration
public virtual void SelectOptionByValue(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value of the item to select. |
Operators
| Improve this Doc View SourceImplicit(RemoteWebElement to Select)
Allows conversion of a
Declaration
public static implicit operator Select(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
Select | The Select. |