docs(api.md): fix typo (#2177)
This commit is contained in:
parent
52d3bc05de
commit
5af70e8ce3
@ -2022,7 +2022,7 @@ console.log(result); // prints '3'.
|
|||||||
|
|
||||||
The only difference between `executionContext.evaluate` and `executionContext.evaluateHandle` is that `executionContext.evaluateHandle` returns in-page object (JSHandle).
|
The only difference between `executionContext.evaluate` and `executionContext.evaluateHandle` is that `executionContext.evaluateHandle` returns in-page object (JSHandle).
|
||||||
|
|
||||||
If the function passed to the `executionContext.evaluateHandle` returns a [Promise], then `executionContext.evaluteHandle` would wait for the promise to resolve and return its value.
|
If the function passed to the `executionContext.evaluateHandle` returns a [Promise], then `executionContext.evaluateHandle` would wait for the promise to resolve and return its value.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const context = await page.mainFrame().executionContext();
|
const context = await page.mainFrame().executionContext();
|
||||||
|
Loading…
Reference in New Issue
Block a user