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 window emulation test.
Petr Pateke1897654db48
diff --git a/test/stealth/stealth.js b/test/stealth/stealth.jsindex c25b26aec..914bfb32b 100644--- a/test/stealth/stealth.js+++ b/test/stealth/stealth.js@@ -120,7 +120,8 @@ describe('Stealth - testing headless chrome hiding tricks', () => {await page.goto('http://example.com');const { screen } = await getFingerPrint(page);- expect(screen.wOuterHeight).to.be.eql(screen.wInnerHeight + 85);+ expect(screen.wOuterHeight > 0).to.be.eql(true);+ expect(screen.wOuterWidth > 0).to.be.eql(true);return browser.close();});