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
chore: fix the `LinkeDOM` e2e test (#2818)
Jindřich Bär455f9c74786d
diff --git a/test/e2e/linkedom-default-ts/actor/main.ts b/test/e2e/linkedom-default-ts/actor/main.tsindex 95008ddb6..ca97877d2 100644--- a/test/e2e/linkedom-default-ts/actor/main.ts+++ b/test/e2e/linkedom-default-ts/actor/main.ts@@ -18,7 +18,7 @@ crawler.router.addDefaultHandler(async ({ document, enqueueLinks, request, log }globs: ['https://crawlee.dev/docs/**'],});- const pageTitle = document.title;+ const pageTitle = document.querySelector('title')?.textContent ?? '';assert.notEqual(pageTitle, '');log.info(`URL: ${url} TITLE: ${pageTitle}`);