Skip to content

Automate browser based workflows with AI

fix max steps for date picker agent (#2944)

LawyZheng90b7f55d3ce0
diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.py
index cf801d99d..fca65dc8f 100644
--- a/skyvern/webeye/actions/handler.py
+++ b/skyvern/webeye/actions/handler.py
@@ -2529,7 +2529,7 @@ async def sequentially_select_from_dropdown(
if await single_select_result.is_done():
return single_select_result
- if i == MAX_SELECT_DEPTH - 1:
+ if i == max_depth - 1:
LOG.warning(
"Reaching the max selection depth",
depth=i,