Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(api.md): Adding new example to page.$$eval #5200

Merged
merged 2 commits into from Jan 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/api.md
Expand Up @@ -1110,7 +1110,11 @@ If `pageFunction` returns a [Promise], then `page.$$eval` would wait for the pro

Examples:
```js
const divsCounts = await page.$$eval('div', divs => divs.length);
const divCount = await page.$$eval('div', divs => divs.length);
```

```js
const options = await page.$$eval('div > span.options', options => options.map(option => option.textContent));
```

#### page.$eval(selector, pageFunction[, ...args])
Expand Down