Class Option
Defines a
Implements
IElementWrapper<RemoteWebElement>
Inherited Members
Namespace: Legerity.Web.Elements.Core
Assembly: Legerity.Web.dll
Syntax
public class Option : WebElementWrapper, IElementWrapper<RemoteWebElement>
Constructors
| Improve this Doc View SourceOption(IWebElement)
Initializes a new instance of the Option class.
Declaration
public Option(IWebElement element)
Parameters
Type | Name | Description |
---|---|---|
IWebElement | element | The |
Option(RemoteWebElement)
Initializes a new instance of the Option class.
Declaration
public Option(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Properties
| Improve this Doc View SourceDisplayValue
Gets the display value of the option.
Declaration
public virtual string DisplayValue { get; }
Property Value
Type | Description |
---|---|
System.String |
IsSelected
Gets a value indicating whether the option is selected.
Declaration
public virtual bool IsSelected { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Value
Gets the value of the option.
Declaration
public virtual string Value { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceSelect()
Selects the option.
Declaration
public virtual void Select()
Operators
| Improve this Doc View SourceImplicit(RemoteWebElement to Option)
Allows conversion of a
Declaration
public static implicit operator Option(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
Option | The Option. |