Skip to content

Commit

Permalink
feat: page wait until load
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed May 19, 2021
1 parent 88ef70d commit 73f5ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/puppeteer_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ const crawl = async opt => {
await page.setUserAgent(options.userAgent);
const tracker = createTracker(page);
try {
await page.goto(pageUrl, { waitUntil: "networkidle0" });
await page.goto(pageUrl, { waitUntil: "load" });
} catch (e) {
e.message = augmentTimeoutError(e.message, tracker);
throw e;
Expand Down

0 comments on commit 73f5ca4

Please sign in to comment.