diff --git a/docs/api.md b/docs/api.md index 31ba8a6c261..3940330402b 100644 --- a/docs/api.md +++ b/docs/api.md @@ -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(); // ... }); ```