Represents the option control (<option>). Default search finds the first occurring <option> element.

Inherited from Field.

Syntax

[ControlDefinition("option", IgnoreNameEndings = "Option")]
[ControlFinding(typeof(FindFirstAttribute))]
public class Option<T, TOwner> : Field<T, TOwner>
    where TOwner : PageObject<TOwner>

Properties

public DataProvider<bool, TOwner>

IsSelected { get; }

Gets the DataProvider<bool, TOwner> instance for the value indicating whether the component is selected.

Methods

public TOwner

Select()

Selects the option. Also executes TriggerEvents.BeforeClick and TriggerEvents.AfterClick triggers.