docs(api.md): Fix ElementHandle example (#3401)

This patch fixes an ElementHandle example by
adding a missing parenthesis.
This commit is contained in:
Ola Flisbäck 2018-10-17 02:24:46 +02:00 committed by Joel Einbinder
parent d025d1f959
commit cf8c62e835

View File

@ -2847,7 +2847,7 @@ Examples:
```
```js
const feedHandle = await page.$('.feed');
expect(await feedHandle.$$eval('.tweet', nodes => nodes.map(n => n.innerText)).toEqual(['Hello!', 'Hi!']);
expect(await feedHandle.$$eval('.tweet', nodes => nodes.map(n => n.innerText))).toEqual(['Hello!', 'Hi!']);
```
#### elementHandle.$eval(selector, pageFunction, ...args)