Skip to main content
Version: Next

Locator.filter() method

Creates an expectation that is evaluated against located values.

If the expectations do not match, then the locator will retry.

Signature

class Locator {
filter<S extends T>(predicate: Predicate<T, S>): Locator<S>;
}

Parameters

Parameter

Type

Description

predicate

Predicate<T, S>

Returns:

Locator<S>