Class SeleniumElement
- Namespace
- CSF.Screenplay.Selenium.Elements
- Assembly
- CSF.Screenplay.Selenium.dll
An implementation of ITarget which represents a single native Selenium HTML element.
public class SeleniumElement : ITarget, IHasName
- Inheritance
-
SeleniumElement
- Implements
- Inherited Members
- Extension Methods
Constructors
SeleniumElement(IWebElement, string)
Initializes a new instance of the SeleniumElement class.
public SeleniumElement(IWebElement webElement, string name = null)
Parameters
webElementIWebElementThe native Selenium web element.
namestringAn optional human-readable name which describes the element.
Properties
Name
Gets the human-readable name of the current object.
public string Name { get; }
Property Value
Remarks
null is strongly discouraged here. All types which implement IHasName should return a non-null response from this property.
WebElement
Gets the native Selenium web element.
public IWebElement WebElement { get; }
Property Value
- IWebElement
Methods
ToString()
public override string ToString()