Commit Graph

72 Commits

Author SHA1 Message Date
Saurav Panda 08bf06f734 Merge branch 'main' into websocket-connection-issues 2026-02-24 17:18:33 -08:00
Aitor c0528bec2d Merge branch 'main' into feat/add-captcha-solver-handling 2026-02-24 02:19:25 +01:00
Saurav Panda ea23b45daa Merge branch 'main' into websocket-connection-issues 2026-02-23 17:14:57 -08:00
Saurav Panda abd0326a6f Add WebSocket reconnection for remote browser CDP connections 2026-02-23 16:34:21 -08:00
reformedot ed28e50806 feat: added automatic captcha solver handling via CAPTCHA watchdog 2026-02-23 10:51:02 -08:00
Saurav Panda 6713afc636 updated _navigate_and_wait 2026-02-21 19:45:54 -08:00
LarsenCundric c67c31932e Fix 2026-02-20 10:57:00 -08:00
Laith Weinberger 84b460d6ce replace wait for download action w automatic wait listener 2026-01-31 18:02:29 -05:00
Mert Unsal 02cf38e864 Revert "allowing MUCH MORE with coordinates" 2025-11-28 04:00:22 -08:00
mertunsall 46cb1a0ae1 allowing MUCH MORE with coordinates 2025-11-27 14:48:23 -08:00
mertunsall c4bb681058 now newlines are executed well with send keys 2025-11-26 18:04:56 -08:00
Cursor Agent 717845c4a7 Increase ScreenshotEvent timeout to 15 seconds
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-11-26 17:29:29 +00:00
tomerwave 00462f9282 fix: use default_factory for event_timeout to allow runtime env var configuration 2025-11-26 10:20:56 +02:00
Cursor Agent 36b2b93d9b Replace broken mouse click with ClickCoordinateEvent
- Add ClickCoordinateEvent to handle coordinate-based clicking via CDP
- Replace broken page.mouse.click() with CDP Input.dispatchMouseEvent
- Add safety checks for file inputs, select elements, and print dialogs
- Add get_dom_element_at_coordinates() to BrowserSession for element detection
- Add force parameter to ClickElementAction to optionally skip safety checks
- Update _click_by_coordinate to dispatch ClickCoordinateEvent instead of using mouse

This fixes coordinate clicking functionality by using CDP directly instead of
the broken Actor mouse object, matching the implementation from mert/everything_coordinates.
2025-11-24 19:55:48 +00:00
Magnus Müller b678f27a3e Migration from highlight index to backendnode id 2025-10-21 21:02:28 -07:00
Magnus Müller 4078b6e265 Remove while_holding_ctrl logic in click 2025-10-12 16:11:09 -07:00
Magnus Müller 6d941a5dcc Rename Clear existing to clear 2025-10-05 19:32:39 -07:00
Magnus Müller b53a7c116a Update outdated function names 2025-10-05 19:12:52 -07:00
Chris Schnabl 03608b62a2 Remove unused paramter 2025-09-21 21:38:42 -07:00
Saurav Panda 126d800df4 remove sensitive data from agent history and logging 2025-09-16 14:41:24 -07:00
Magnus Müller 6ceb1a8e4d Merge branch 'main' into event_timeouts 2025-09-06 10:23:29 -07:00
Magnus Müller 73ce26ab3b Refactor timeout handling in events to use a dedicated function for improved error handling and clarity. This change replaces direct environment variable parsing with a new _get_timeout function across multiple event classes, ensuring consistent timeout management. 2025-09-06 10:23:14 -07:00
Magnus Müller 3a7ae8d8d6 popup works 2025-09-04 16:07:05 -07:00
Andrei Gheorghe c16726433c Allow override of timeouts from env variables 2025-08-27 22:39:58 -07:00
Magnus Müller 13dd73b23a Update Tool imports in docs, readme, and docstrings 2025-08-26 11:13:27 -07:00
Nick Sweeting 8c52b5f46a extra TODO comments 2025-08-22 14:50:34 -07:00
Mert Unsal 3c699ba3ca Update browser_use/browser/events.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-21 21:36:06 +01:00
mertunsall cc12442014 record coordinates for input_text 2025-08-21 21:29:52 +01:00
mertunsall 59fb17cdbe record coordinates of click 2025-08-21 21:01:18 +01:00
Nick Sweeting 76512fbfdd fix Failed to build DOM tree: cannot reuse already awaited coroutine 2025-08-16 17:58:45 -07:00
Nick Sweeting 99a0e5a3bd rename ClickElementEvent.new_tab to while_holding_ctrl 2025-08-16 16:25:15 -07:00
Nick Sweeting 8d86832095 fix SwitchTab by using TargetID for all tab_ids 2025-08-15 16:45:27 -07:00
Nick Sweeting 5bc9cbe141 when click_element_by_index fails, auto-call get_dropdown_options and return result directly 2025-08-14 18:16:12 -07:00
Nick Sweeting 5cc7d0f301 move dropdown options to proper event handlers 2025-08-14 16:44:29 -07:00
Nick Sweeting c37b72adb1 fix screenshot return type and add recovery using activateTarget when any handler fails 2025-08-12 12:11:33 -07:00
Magnus Müller 8b4d74a369 Fix screenshot 2025-08-12 10:41:01 -07:00
Magnus Müller 9edad03d23 Fix screenshots 2025-08-12 08:55:19 -07:00
Nick Sweeting d1c9ddd9fe fix search_google nav 2025-08-12 05:26:42 -07:00
Nick Sweeting 1aa486c534 bump cdp-use version 2025-08-12 05:16:40 -07:00
Nick Sweeting 7a0889cf20 formatting 2025-08-12 04:14:53 -07:00
Nick Sweeting d1e569eb31 raise BrowserError exceptions instead of returning success=False 2025-08-12 04:14:53 -07:00
Nick Sweeting 4a4ce9ff45 cleanup event name overlap check 2025-08-11 10:05:05 -07:00
Nick Sweeting 31fb754473 finish connecting feature flags 2025-08-08 20:23:18 -07:00
Nick Sweeting 557067b8e9 remove expect_download param from click action 2025-08-08 17:42:46 -07:00
Nick Sweeting 3bb8fb0fee improve focus tracking 2025-08-08 07:15:04 -07:00
Nick Sweeting db4c4e9b49 fix duplicate typed keystrokes 2025-08-08 04:13:44 -07:00
Nick Sweeting 4826041154 new cdp_session singleton for current page 2025-08-07 21:48:57 -07:00
Nick Sweeting a8817ff65f click is working again 2025-08-07 14:43:58 -07:00
Nick Sweeting 1d19cbd90f fix click return values 2025-08-07 14:24:52 -07:00
Nick Sweeting 64480ddbc8 fix circular reference issues with Event node serializing 2025-08-07 14:21:12 -07:00