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
predicateFunc<IWebDriver, T>The predicate function to evaluate.
namestringAn optional name for the predicate.
Returns
- WaitUntilPredicate<T>
A new instance of WaitUntilPredicate.
Type Parameters
TThe result type of the predicate function.
Exceptions
- ArgumentException
Thrown if the result type of the predicate is a value type other than boolean.