Skip to content

Commit afd9ff1

Browse files
authored
Merge pull request #63 from arabold/bugfix/62-fix-wait-event
fix(scraper): replace domcontentloaded with load event in Playwright
2 parents 847acdb + 9345152 commit afd9ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scraper/middleware/components/HtmlPlaywrightMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export class HtmlPlaywrightMiddleware implements ContentProcessorMiddleware {
8686
// Use 'domcontentloaded' as scripts might need the initial DOM structure
8787
// Use 'networkidle' if waiting for async data fetches is critical, but slower.
8888
await page.goto(context.source, {
89-
waitUntil: "domcontentloaded",
89+
waitUntil: "load",
9090
});
9191

9292
// Optionally, add a small delay or wait for a specific element if needed

0 commit comments

Comments
 (0)