Creates an expectation that is evaluated against located values.
If the expectations do not match, then the locator will retry.
class Locator {
filter<S extends T>(predicate: Predicate<T, S>): Locator<S>;
}
Parameter | Type | Description |
---|---|---|
predicate | [Predicate](./puppeteer.predicate.md)<T, S> |
Returns:
Locator<S>