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.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
Increased timeout in unit tests
Jan Curne9b27f262877
diff --git a/test/browser.js b/test/browser.jsindex f5e4d1948..34d8171ec 100644--- a/test/browser.js+++ b/test/browser.js@@ -39,7 +39,7 @@ describe('Apifier.browse()', () => {expect(url).to.eql('about:blank');return browser.close();});- }).timeout(60 * 1000);+ }).timeout(300 * 1000);it('opens https://www.example.com in headless mode', () => {delete process.env.APIFY_HEADLESS;@@ -54,7 +54,7 @@ describe('Apifier.browse()', () => {expect(url).to.eql('https://www.example.com/');return browser.close();});- }).timeout(60 * 1000);+ }).timeout(300 * 1000);});@@ -76,7 +76,7 @@ describe('launchChrome()', () => {expect(version.Browser).to.contain('HeadlessChrome');// console.dir(version);});- }).timeout(60 * 1000);+ }).timeout(300 * 1000);it('opens http://www.example.com', () => {function onPageLoad(Runtime) {@@ -115,7 +115,7 @@ describe('launchChrome()', () => {}).on('error', reject);});- }).timeout(60 * 1000);+ }).timeout(300 * 1000);// it('test github requests', () => {// return new Promise((resolve, reject) => {