mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
🔥 去除截图等待状态时的超时
This commit is contained in:
@@ -11,5 +11,5 @@ async def screenshot(url: str) -> bytes:
|
||||
await browser.new_page(viewport={'width': 3000, 'height': 3000}) as page,
|
||||
):
|
||||
await page.goto(url)
|
||||
await page.wait_for_load_state('networkidle', timeout=5000)
|
||||
await page.wait_for_load_state('networkidle')
|
||||
return await page.locator('id=content').screenshot(timeout=5000, type='png')
|
||||
|
||||
Reference in New Issue
Block a user