Table of Contents

Class WaitUntilPredicate<T>

Namespace
CSF.Screenplay.Selenium.Actions
Assembly
CSF.Screenplay.Selenium.dll

Represents a predicate that can be used to wait until a condition is true.

public class WaitUntilPredicate<T> : IHasName

Type Parameters

T
Inheritance
WaitUntilPredicate<T>
Implements
Inherited Members

Constructors

WaitUntilPredicate(Func<IWebDriver, T>, string)

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

public WaitUntilPredicate(Func<IWebDriver, T> predicate, string name = null)

Parameters

predicate Func<IWebDriver, T>

The predicate function to evaluate.

name string

An optional name for the predicate.

Exceptions

ArgumentException

Thrown if the result type of the predicate is a value type other than boolean.

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.

Predicate

Gets the predicate function to evaluate.

public Func<IWebDriver, T> Predicate { get; }

Property Value

Func<IWebDriver, T>