fix(docs): broken link to method (#5669)

This commit is contained in:
Yury Semikhatsky 2021-03-01 17:37:30 -08:00 committed by GitHub
parent f637b0302d
commit f925a033e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -517,7 +517,7 @@ Optional argument to pass to [`param: expression`].
Returns the return value of [`param: expression`] as a [JSHandle].
The only difference between [`method: Frame.evaluate`] and [`method: Frame.evaluateHandle`] is that
[method: Frame.evaluateHandle`] returns [JSHandle].
[`method: Frame.evaluateHandle`] returns [JSHandle].
If the function, passed to the [`method: Frame.evaluateHandle`], returns a [Promise], then
[`method: Frame.evaluateHandle`] would wait for the promise to resolve and return its value.

4
types/types.d.ts vendored
View File

@ -3271,7 +3271,9 @@ export interface Frame {
* The only difference between
* [frame.evaluate(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frameevaluatepagefunction-arg) and
* [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frameevaluatehandlepagefunction-arg)
* is that [method: Frame.evaluateHandle`] returns [JSHandle].
* is that
* [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frameevaluatehandlepagefunction-arg)
* returns [JSHandle].
*
* If the function, passed to the
* [frame.evaluateHandle(pageFunction[, arg])](https://playwright.dev/docs/api/class-frame#frameevaluatehandlepagefunction-arg),