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 OpenQA.Selenium.Support.UI.SelectElement instance from the specified element.

public static SelectElement AsSelectElement(this SeleniumElement element)

Parameters

element SeleniumElement

A Selenium element

Returns

SelectElement

A Selenium select element

Remarks

A SelectElement is a Selenium object which represents an HTML <select> element, providing convenience functionality for reading and manipulating its state.

Exceptions

UnexpectedTagNameException

If the element is not a <select> element

ArgumentNullException

If the element is null