Skip to content

Commit

Permalink
🩹 Page-evaluate navigation destroyed error (unclecode#304)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dvschuyl authored Nov 29, 2024
1 parent 569bdb6 commit 1ed7c15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crawl4ai/async_crawler_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,7 @@ async def _crawl_web(self, url: str, **kwargs) -> AsyncCrawlResponse:
});
}
"""
await page.wait_for_load_state()
await page.evaluate(update_image_dimensions_js)

# Wait a bit for any onload events to complete
Expand Down

0 comments on commit 1ed7c15

Please sign in to comment.