🩹 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.
This commit is contained in:
dvschuyl
2024-11-29 14:06:04 +01:00
committed by GitHub
parent 569bdb6073
commit 1ed7c15118

View File

@@ -920,6 +920,7 @@ class AsyncPlaywrightCrawlerStrategy(AsyncCrawlerStrategy):
});
}
"""
await page.wait_for_load_state()
await page.evaluate(update_image_dimensions_js)
# Wait a bit for any onload events to complete