Skip to content

Automate browser based workflows with AI

Better error message on screen timeouts (#2793)

Shuchang Zheng980f81518023
diff --git a/skyvern/webeye/utils/page.py b/skyvern/webeye/utils/page.py
index 084f1c319..ab67f08b4 100644
--- a/skyvern/webeye/utils/page.py
+++ b/skyvern/webeye/utils/page.py
@@ -196,8 +196,8 @@ class SkyvernFrame:
async with asyncio.timeout(timeout_ms / 1000):
return await frame.evaluate(expression=expression, arg=arg)
except asyncio.TimeoutError:
- LOG.exception("Timeout to evaluate expression", expression=expression)
- raise TimeoutError("timeout to evaluate expression")
+ LOG.exception("Skyvern timed out trying to analyze the page", expression=expression)
+ raise TimeoutError("Skyvern timed out trying to analyze the page")
@staticmethod
async def get_url(frame: Page | Frame) -> str: