Table of Contents

Class FilterSpecification<T>

Namespace
CSF.Screenplay.Selenium.Questions
Assembly
CSF.Screenplay.Selenium.dll

A specification class which matches elements based upon the value of a query and a specification for that value.

public class FilterSpecification<T> : ISpecificationFunction<SeleniumElement>

Type Parameters

T
Inheritance
FilterSpecification<T>
Implements
ISpecificationFunction<SeleniumElement>
Inherited Members

Remarks

This class is intended for use alongside the FilterElements question. It is used to specify the filtering criteria by which a collection of SeleniumElement should be filtered.

Constructors

FilterSpecification(IQuery<T>, ISpecificationFunction<T>)

Initializes a new instance of the FilterSpecification<T> class.

public FilterSpecification(IQuery<T> query, ISpecificationFunction<T> valueSpec)

Parameters

query IQuery<T>

The query to get the value from the element.

valueSpec ISpecificationFunction<T>

The specification function to match the value.

Methods

GetFunction()

Gets the predicate function provided by the current specification instance.

public Func<SeleniumElement, bool> GetFunction()

Returns

Func<SeleniumElement, bool>

A predicate function