Skip to content

Commit 1ed7c15

Browse files
authored
🩹 Page-evaluate navigation destroyed error (#304)
Thanks for your contribution and such a nice approach. Now that I think of it, I guess I can make good use of this for some other part of the code. By the way, thank you so much; I will add your name to the new list of contributors.
1 parent 569bdb6 commit 1ed7c15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crawl4ai/async_crawler_strategy.py

+1
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,7 @@ async def _crawl_web(self, url: str, **kwargs) -> AsyncCrawlResponse:
920920
});
921921
}
922922
"""
923+
await page.wait_for_load_state()
923924
await page.evaluate(update_image_dimensions_js)
924925

925926
# Wait a bit for any onload events to complete

0 commit comments

Comments
 (0)