Table of Contents

Class CssPropertyQuery

Namespace
CSF.Screenplay.Selenium.Queries
Assembly
CSF.Screenplay.Selenium.dll

A query to get the value of a specified CSS property from a Selenium element.

public class CssPropertyQuery : IQuery<string>, IHasName
Inheritance
CssPropertyQuery
Implements
Inherited Members

Constructors

CssPropertyQuery(string)

Initializes a new instance of the CssPropertyQuery class with the specified property name.

public CssPropertyQuery(string propertyName)

Parameters

propertyName string

The name of the CSS property to query.

Properties

Name

Gets the human-readable name of the current object.

public string Name { get; }

Property Value

string

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

element SeleniumElement

The Selenium element.

Returns

string

The value of type string.