This commit is contained in:
@@ -71,8 +71,8 @@ async def screenshot_url_service(decoded_url, full_page=True):
|
||||
# Ensure network has gone quiet so dynamic requests can finish.
|
||||
await page.wait_for_load_state('networkidle', timeout=30000)
|
||||
|
||||
# Allow a brief settle period for final paints/animations.
|
||||
await page.wait_for_timeout(3000)
|
||||
# Extra settle time so animations/transitions can complete.
|
||||
await page.wait_for_timeout(5000)
|
||||
screenshot_bytes = await page.screenshot(full_page=full_page, type='png')
|
||||
return screenshot_bytes
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user