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](./puppeteer.predicate.md)<T, S>

Returns:

Locator<S>