From 8b53c1276ebc04857c0fe4524db6532885e4acad Mon Sep 17 00:00:00 2001 From: Pablo Klaschka Date: Mon, 14 Sep 2020 11:48:08 +0000 Subject: [PATCH] Replaced deprecated watFor() function with waitForTimeout() cf. https://github.com/puppeteer/puppeteer/issues/6214 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 02fe42f..8985e32 100755 --- a/index.js +++ b/index.js @@ -66,7 +66,7 @@ if (process.argv[2] === '-h' || process.argv[2] === '--help') { console.log(`${checked - 1}/${found}\t Checking link: `, link); await page.goto(link); - await page.waitFor(100); + await page.waitForTimeout(100); const content = await page.content();