Table of Contents

Class SeleniumElementExtensions

Namespace
CSF.Screenplay.Selenium.Elements
Assembly
CSF.Screenplay.Selenium.dll

Extension methods for SeleniumElement.

public static class SeleniumElementExtensions
Inheritance
SeleniumElementExtensions
Inherited Members

Methods

AsSelectElement(SeleniumElement)

Gets a Selenium SelectElement instance from the specified element.

public static SelectElement AsSelectElement(this SeleniumElement element)

Parameters

element SeleniumElement

A SeleniumElement which should represent an HTML <select> element

Returns

SelectElement

A Selenium select element

Remarks

SelectElement is a Selenium type which represents an HTML <select> element, wrapping the native IWebElement. The select element class provides convenience functionality for reading and manipulating the state of the underlying element.

Exceptions

UnexpectedTagNameException

If the element is not a <select> element

ArgumentNullException

If the element is null