Class AttributeQuery
- Namespace
- CSF.Screenplay.Selenium.Queries
- Assembly
- CSF.Screenplay.Selenium.dll
A query to get the value of a specified HTML attribute from a Selenium element.
public class AttributeQuery : IQuery<string>, IHasName
- Inheritance
-
AttributeQuery
- Implements
- Inherited Members
Constructors
AttributeQuery(string)
Initializes a new instance of the AttributeQuery class with the specified attribute name.
public AttributeQuery(string attributeName)
Parameters
attributeNamestringThe name of the HTML attribute to query.
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.
Methods
GetValue(SeleniumElement)
Gets the current value from a Selenium element.
public string GetValue(SeleniumElement element)
Parameters
elementSeleniumElementThe Selenium element.