mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs(api.md): Fix ElementHandle example (#3401)
This patch fixes an ElementHandle example by adding a missing parenthesis.
This commit is contained in:
parent
d025d1f959
commit
cf8c62e835
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user