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.

test: fix playwright-enqueue-links e2e test

Martin Adámekb43165cf0cad
diff --git a/test/e2e/playwright-enqueue-links/actor/main.js b/test/e2e/playwright-enqueue-links/actor/main.js
index 88c425a75..4d45709d1 100644
--- a/test/e2e/playwright-enqueue-links/actor/main.js
+++ b/test/e2e/playwright-enqueue-links/actor/main.js
@@ -20,12 +20,12 @@ await Actor.main(async () => {
// Wait for the actor cards to render,
// otherwise enqueueLinks wouldn't enqueue anything.
- await page.waitForSelector('.ActorStorePagination-pages a');
+ await page.waitForSelector('.ActorStorePagination-buttons a');
// Add links to the queue, but only from
// elements matching the provided selector.
await enqueueLinks({
- selector: '.ActorStorePagination-pages a',
+ selector: '.ActorStorePagination-buttons a',
});
},
});