From fbee98aa51d036298e5a83de2308cbca74e66f6e Mon Sep 17 00:00:00 2001 From: Sashiyama Yoshiki Date: Wed, 18 Oct 2017 07:07:16 +0900 Subject: [PATCH] chore(examples): add missing argument to search example (#1066) Fixes #1059. --- examples/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/search.js b/examples/search.js index cd13f8abbde..7c09a40f537 100644 --- a/examples/search.js +++ b/examples/search.js @@ -24,7 +24,7 @@ const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('https://google.com', {waitUntil: 'networkidle'}); // Type our query into the search bar -await page.type('puppeteer'); +await page.type('input[name=q]', 'puppeteer'); await page.click('input[type="submit"]');