Table of Contents

Class Option

Namespace
CSF.Screenplay.Selenium.Queries
Assembly
CSF.Screenplay.Selenium.dll

Represents a single HTML <option> element within an HTML <select> element.

public sealed class Option : IEquatable<Option>, IHasName
Inheritance
Option
Implements
Inherited Members

Constructors

Option(string, string)

Initializes a new instance of the Option class with the specified text and value.

public Option(string text, string value)

Parameters

text string

The displayed text of the option.

value string

The underlying value of the option.

Properties

Text

Gets the option's displayed text.

public string Text { get; }

Property Value

string

Value

Gets the option's underlying value.

public string Value { get; }

Property Value

string

Methods

Equals(Option)

public bool Equals(Option other)

Parameters

other Option

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string