Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Change log

Magnus Müller34590509fa60
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index 1e2169de5..bca8193b6 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -1248,7 +1248,7 @@ class Agent(Generic[Context, AgentStructuredOutput]):
self.logger.debug(f'✅ Completed step {step + 1}/{max_steps}')
except TimeoutError:
# Handle step timeout gracefully
- error_msg = f'Step {step + 1} timed out after 300 seconds'
+ error_msg = f'Step {step + 1} timed out after {self.settings.step_timeout} seconds'
self.logger.error(f'⏰ {error_msg}')
self.state.consecutive_failures += 1
self.state.last_result = [ActionResult(error=error_msg)]