Fix chrome user data dir problem (#2503)

This commit is contained in:
Shuchang Zheng
2025-05-28 22:41:06 -07:00
committed by GitHub
parent 869757398a
commit cf08ca951e
11 changed files with 283 additions and 85 deletions

View File

@@ -545,7 +545,8 @@ async def scrape_web_unsafe(
try:
skyvern_frame = await SkyvernFrame.create_instance(frame=page)
html = await skyvern_frame.get_content()
window_dimension = Resolution(width=page.viewport_size["width"], height=page.viewport_size["height"])
if page.viewport_size:
window_dimension = Resolution(width=page.viewport_size["width"], height=page.viewport_size["height"])
except Exception:
LOG.error(
"Failed out to get HTML content",