️ 尝试提高截图性能

This commit is contained in:
2024-08-16 18:53:12 +08:00
parent c8907a47a4
commit a2d69b9113

View File

@@ -17,7 +17,6 @@ async def screenshot(url: str) -> bytes:
await browser.new_page(device_scale_factor=config.tetris.screenshot_quality) as page,
):
await page.goto(url)
await page.wait_for_load_state('networkidle')
size: ViewportSize = await page.evaluate("""
() => {
const element = document.querySelector('#content');