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