Skip to content

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

decreased click wait timeouts

Gregor Žuničc91c1782e873
diff --git a/browser_use/browser/service.py b/browser_use/browser/service.py
index 6e443b100..a9abcab38 100644
--- a/browser_use/browser/service.py
+++ b/browser_use/browser/service.py
@@ -372,7 +372,7 @@ class Browser:
if element is None:
raise Exception(f'Element with xpath: {xpath} not found')
- await element.scroll_into_view_if_needed(timeout=5000)
+ await element.scroll_into_view_if_needed(timeout=2500)
await element.fill('')
await element.type(text)
await self.wait_for_page_load()
@@ -397,7 +397,7 @@ class Browser:
# await element.scroll_into_view_if_needed()
try:
- await element.click(timeout=5000)
+ await element.click(timeout=2500)
await self.wait_for_page_load()
return
except Exception: