Commit Graph

275 Commits

Author SHA1 Message Date
Magnus Müller 662a39742e Use existing method to get coordinates 2025-08-29 18:08:37 -07:00
Magnus Müller d80549038b Enhance element interaction handling
- Added logging for new elements detected during actions in the Agent class.
- Implemented a human-like text field clearing method in DefaultActionWatchdog, utilizing Ctrl+A and Backspace.
- Improved focus handling for label elements, ensuring they are only interactive if they do not have a 'for' attribute.
- Updated clickable element detection logic to account for labels pointing to inputs.

These changes improve the robustness of user interactions and enhance debugging capabilities.
2025-08-29 18:01:34 -07:00
Magnus Müller bb3055e7bb Emulate real human typing 2025-08-29 16:51:04 -07:00
Magnus Müller 7eb30f6842 Update browser_use/browser/watchdogs/downloads_watchdog.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-08-29 15:05:10 -07:00
Magnus Müller 1a31aefd38 Merge remote-tracking branch 'origin/main' into fix-tab-switching 2025-08-29 14:48:46 -07:00
Magnus Müller 9246ca1621 Remove init scrpt because it was not used 2025-08-29 14:39:12 -07:00
jason 75759b49c0 Merge branch 'main' into fix/storage-watchdog-stop-monitoring 2025-08-29 15:56:57 -04:00
Saurav Panda 34a69a0acb fix: add highlighting condition check for disable_security browser profile setting 2025-08-29 11:58:51 -07:00
Magnus Müller 9dd5b27c1f Logs 2025-08-29 11:25:25 -07:00
Magnus Müller 9915ea41a9 Remove 📍 from logs 2025-08-29 11:02:50 -07:00
jtanningbed 0d61c52c11 fix: improve StorageStateWatchdog lifecycle management
- Add BrowserStopEvent handler to properly stop monitoring when browser closes
- Await LoadStorageStateEvent dispatch to ensure storage is loaded before navigation
- Clean up monitoring task on browser stop to prevent CDP connection errors

This ensures storage state is properly loaded before the browser starts navigating
and prevents error logs from monitoring attempts after the browser has closed.
2025-08-28 01:31:56 -04:00
Magnus Müller 21febf82ad Check for highlight_elements flag 2025-08-27 16:41:13 -07:00
Magnus Müller 0dd27ca976 Remove js in downloadwatchdog 2025-08-27 16:37:17 -07:00
EnzoFanAccount d354c0eb9f linting 2025-08-27 15:13:33 -03:00
Enzo Biondo d6d5fd0fb6 Merge branch 'main' into feat/video-recording 2025-08-27 14:47:05 -03:00
Magnus Müller 08f8fbc499 Refactor DOMWatchdog event retrieval and update tests for improved reliability
- Changed `_get_recent_events_str` method in `dom_watchdog.py` to return recent events as JSON instead of CSV, enhancing data structure and usability.
- Updated tests in `test_browser_event_ClickElementEvent.py`, `test_browser_event_NavigateToUrlEvent.py`, and others to reflect changes in event handling and improve error handling.
- Marked several tests as skipped due to known issues, ensuring clarity in test results.
2025-08-26 22:59:07 -07:00
EnzoFanAccount 06d0b1e9ba Merge remote-tracking branch 'upstream/main' into feat/video-recording 2025-08-26 18:37:14 -03:00
reformedot 4946df6183 chore: merge main 2025-08-26 11:42:08 +01:00
EnzoFanAccount 53cba74b82 Merge remote-tracking branch 'upstream/main' into feat/video-recording 2025-08-22 20:43:14 -03:00
Nick Sweeting 4c93f39a49 cleanup test file naming 2025-08-22 16:06:47 -07:00
Nick Sweeting 5668ab3f9b move cross-origin iframe option to instance attr instead of hardcoded global 2025-08-22 16:05:17 -07:00
Nick Sweeting 720635f8f5 tweak logging to use target id everywhere consistently instead of python id of page obj 2025-08-22 16:04:20 -07:00
Nick Sweeting 8c52b5f46a extra TODO comments 2025-08-22 14:50:34 -07:00
Nick Sweeting f08001581f fix variable scoping in downloads watchdog 2025-08-21 17:33:24 -07:00
Nick Sweeting 3c90c842a0 move watchdogs into subfolder 2025-08-21 17:33:24 -07:00