docs(api.md): fix typo (#2177)

This commit is contained in:
jviala-ekino 2018-03-13 15:42:37 +01:00 committed by Andrey Lushnikov
parent 52d3bc05de
commit 5af70e8ce3

View File

@ -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).
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
const context = await page.mainFrame().executionContext();