Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

fixed tests

vdrmota058d5763e752
diff --git a/test/utils.js b/test/utils.js
index 966136efa..0c4fc188d 100644
--- a/test/utils.js
+++ b/test/utils.js
@@ -918,8 +918,8 @@ describe('utils.infiniteScroll()', () => {
await page.goto('https://medium.com/search?q=biometrics', {
waitUntil: 'networkidle2',
});
- const TIMEOUT_AFTER = 10; // seconds
- await utils.infiniteScroll({page, timeoutSecs = TIMEOUT_AFTER});
+ const timeoutSecs = 10; // seconds
+ await utils.infiniteScroll({page, timeoutSecs});
await browser.close();
})();
});