Skip to content

Commit

Permalink
docs(api.md): update ElementHandle example (#4169)
Browse files Browse the repository at this point in the history
Fix #4150
  • Loading branch information
aslushnikov committed Mar 19, 2019
1 parent c6c3249 commit 0d0e620
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/api.md
Expand Up @@ -2962,9 +2962,9 @@ const puppeteer = require('puppeteer');

puppeteer.launch().then(async browser => {
const page = await browser.newPage();
await page.goto('https://google.com');
const inputElement = await page.$('input[type=submit]');
await inputElement.click();
await page.goto('https://example.com');
const hrefElement = await page.$('a');
await hrefElement.click();
// ...
});
```
Expand Down

0 comments on commit 0d0e620

Please sign in to comment.