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
Fixed tests.
Petr Patekd63a2783fae7
diff --git a/test/stealth/stealth.js b/test/stealth/stealth.jsindex f7ff20042..15f0d35d9 100644--- a/test/stealth/stealth.js+++ b/test/stealth/stealth.js@@ -82,7 +82,8 @@ describe('Stealth - testing headless chrome hiding tricks', () => {const { languages } = await getFingerPrint(page);expect(languages).to.be.an('array');- expect(languages[0]).to.be.eql('en-US');+ expect(languages[0]).to.be.eql('cs');+ expect(languages[1]).to.be.eql('en-US');return browser.close();});@@ -155,7 +156,7 @@ describe('Stealth - testing headless chrome hiding tricks', () => {const { hasChrome } = await getFingerPrint(page);const chrome = await page.evaluate(() => window.chrome); //eslint-disable-lineexpect(chrome).to.be.an('object');- expect(chrome.runtime).to.not.be.empty; // eslint-disable-line+ expect(chrome.runtime).to.be.empty; // eslint-disable-lineexpect(hasChrome).to.be.eql(true);return browser.close();