diff --git a/docs/src/api/class-locator.md b/docs/src/api/class-locator.md index 60c3fcb676..e4f132a43f 100644 --- a/docs/src/api/class-locator.md +++ b/docs/src/api/class-locator.md @@ -383,7 +383,7 @@ Optional argument to pass to [`param: expression`]. The method finds all elements matching the specified locator and passes an array of matched elements as a first argument to [`param: expression`]. Returns the result of [`param: expression`] invocation. -If [`param: expression`] returns a [Promise], then [`Locator.evaluateAll`] would wait for the promise +If [`param: expression`] returns a [Promise], then [`method: Locator.evaluateAll`] would wait for the promise to resolve and return its value. Examples: diff --git a/types/types.d.ts b/types/types.d.ts index 574b433e82..2611edaa61 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -7064,8 +7064,9 @@ export interface Locator { * The method finds all elements matching the specified locator and passes an array of matched elements as a first argument * to `pageFunction`. Returns the result of `pageFunction` invocation. * - * If `pageFunction` returns a [Promise], then [`Locator.evaluateAll`] would wait for the promise to resolve and return its - * value. + * If `pageFunction` returns a [Promise], then + * [locator.evaluateAll(pageFunction[, arg])](https://playwright.dev/docs/api/class-locator#locator-evaluate-all) would + * wait for the promise to resolve and return its value. * * Examples: *