docs(api): fix typo in elementHandle.evaluateHandle() (#6276)

This commit is contained in:
Jaroslav Maslo 2020-07-27 08:14:19 +02:00 committed by GitHub
parent 8c1a5866c5
commit a47b556155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.