From a47b5561556c797483b3fec736eee436a65da95d Mon Sep 17 00:00:00 2001 From: Jaroslav Maslo Date: Mon, 27 Jul 2020 08:14:19 +0200 Subject: [PATCH] docs(api): fix typo in elementHandle.evaluateHandle() (#6276) --- docs/api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api.md b/docs/api.md index ef993a76297..cd4a8238921 100644 --- a/docs/api.md +++ b/docs/api.md @@ -3511,11 +3511,11 @@ expect(await tweetHandle.evaluate(node => node.innerText)).toBe('10'); This method passes this handle as the first argument to `pageFunction`. -The only difference between `evaluateHandle.evaluate` and `evaluateHandle.evaluateHandle` is that `executionContext.evaluateHandle` returns in-page object (JSHandle). +The only difference between `elementHandle.evaluate` and `elementHandle.evaluateHandle` is that `executionContext.evaluateHandle` returns in-page object (JSHandle). If the function returns an element, the returned handle is an [ElementHandle]. -If the function passed to the `evaluateHandle.evaluateHandle` returns a [Promise], then `evaluateHandle.evaluateHandle` would wait for the promise to resolve and return its value. +If the function passed to the `elementHandle.evaluateHandle` returns a [Promise], then `elementHandle.evaluateHandle` would wait for the promise to resolve and return its value. See [Page.evaluateHandle](#pageevaluatehandlepagefunction-args) for more details.