Table of Contents

Class WaitUntilPredicate

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

Provides methods to create wait predicates for Selenium WebDriver.

public static class WaitUntilPredicate
Inheritance
WaitUntilPredicate
Inherited Members

Methods

From<T>(Func<IWebDriver, T>, string)

Creates a WaitUntilPredicate<T> from a given predicate function.

public static WaitUntilPredicate<T> From<T>(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.

Returns

WaitUntilPredicate<T>

A new instance of WaitUntilPredicate.

Type Parameters

T

The result type of the predicate function.

Exceptions

ArgumentException

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