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
Properties
Text
Gets the option's displayed text.
public string Text { get; }
Property Value
Value
Gets the option's underlying value.
public string Value { get; }
Property Value
Methods
Equals(Option)
public bool Equals(Option other)
Parameters
otherOption
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()