From ef47b14f03723ff14d0e24c0af2d825983715ae4 Mon Sep 17 00:00:00 2001 From: tamanobi Date: Sat, 2 Feb 2019 18:23:12 +0900 Subject: [PATCH] fix query selector --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index d77ebe1..153075d 100755 --- a/src/index.js +++ b/src/index.js @@ -21,7 +21,7 @@ exports.run = async (browser) => { ); console.log((await page.content()).slice(0, 500)); - await page.type('#lst-ib', 'aaaaa'); + await page.type('input[name="q"]', 'aaaaa'); // avoid to timeout waitForNavigation() after click() await Promise.all([ // avoid to