This commit is contained in:
1 parent
139023c09d
commit
a46286e24c
1 file changed
+1
-1
@@ -72,7 +72,7 @@ async def screenshot_url_service(decoded_url, full_page=True):
|
|||||||
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.
|
# Allow a brief settle period for final paints/animations.
|
||||||
await page.wait_for_timeout(1500)
|
await page.wait_for_timeout(3000)
|
||||||
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