Commit Graph

664 Commits

Author SHA1 Message Date
Nick Sweeting fad1fb38a9 hard cap on nav 2025-07-10 06:29:22 -07:00
Nick Sweeting ed528276af fix test 2025-07-10 06:12:48 -07:00
Nick Sweeting 5a15642d6a crashed page recovery 2025-07-10 05:17:45 -07:00
Nick Sweeting 1f698ff1c2 handle timeouts during JS execution 2025-07-09 15:05:33 -07:00
Nick Sweeting ab0f9cae8a lower initial nav timeout because we wait for loading later on 2025-07-09 14:54:02 -07:00
Nick Sweeting d1f7af3636 better logging of crashed pages 2025-07-09 14:50:36 -07:00
Nick Sweeting bdf4f3caab remove duplicate prepare_user_data_dir 2025-07-09 14:42:29 -07:00
Nick Sweeting 6f2e60d9a9 assert pages are still usable after skipping loading 2025-07-09 14:41:08 -07:00
Nick Sweeting f81c381a65 loading animation never blocks 2025-07-09 14:19:25 -07:00
Magnus Müller 44ebde5dd8 Merge branch 'main' into laminar-ignore-input-output 2025-07-09 22:31:36 +02:00
Nick Sweeting c0b139e8e9 ignore nav during nav 2025-07-09 13:29:50 -07:00
Magnus Müller 6407c10918 laminar-ignore input output 2025-07-09 22:27:22 +02:00
Billy 141cf5cf75 fix: use user-provided executable_path instead of defaulting to chromium
Previously, the code always used `self.playwright.chromium.executable_path`
regardless of whether the user provided a custom `executable_path` in their
BrowserProfile. This caused the browser to always launch with the default
Chromium executable instead of the user's specified browser.

Now properly checks for `self.browser_profile.executable_path` first and
only falls back to the default if no custom path is provided.

Fixes issue where custom browser executables were ignored during launch.
2025-07-09 20:20:19 +05:30
mertunsall 2a84983acc fix 2025-07-09 16:14:10 +02:00
Magnus Müller a9895087a8 Merge branch 'main' into cursor/ignore-about-blank-tab-in-context-d397 2025-07-09 12:53:19 +02:00
Magnus Müller 0e3a9ae8a9 Update session.py 2025-07-09 12:51:25 +02:00
Gregor Žunič 8a2eda1828 wip, started migrating to pure cdp 2025-07-09 12:22:21 +02:00
Magnus Müller 36a7accb54 Merge remote-tracking branch 'origin/main' into fix-lmnr-serilization 2025-07-09 10:04:18 +02:00
Magnus Müller 1eb6ea28c0 Update observability decorators in service classes
- Added `ignore_output=True` to the `@observe_debug` decorator in the Agent and BrowserSession classes to suppress output for specific methods.
- Updated the `@observe_debug` decorator in the MessageManager class to include `ignore_input=True` for better control over debug logging.
2025-07-09 10:04:05 +02:00
Nick Sweeting 4959b9b4af raise timeout for interactivity check to avoid flaky tests 2025-07-08 21:46:28 -07:00
Nick Sweeting 8d662c54ce dont wait for page responsiveness before nav 2025-07-08 18:34:01 -07:00
Nick Sweeting 5ef2b369da go_back timeout was way too short 2025-07-08 18:25:45 -07:00
Nick Sweeting 2f0d40f9d6 Merge branch 'main' into fresh-page 2025-07-08 17:46:20 -07:00
Nick Sweeting 6d33adbb9f try base64 cdp screenshots directly 2025-07-08 17:45:08 -07:00
Magnus Müller 542bcdacfd Merge remote-tracking branch 'origin/main' into refactor-agent-stable 2025-07-09 00:01:52 +02:00
Magnus Müller 0682e32f1b Fix deprecated asyncio.TimeoutError usage 2025-07-08 23:30:39 +02:00
Magnus Müller 6f446b8a03 Increase timeouts 2025-07-08 22:24:17 +02:00
Magnus Müller 29f1e1710e Merge branch 'main' into refactor-agent-stable 2025-07-08 17:28:57 +02:00
Mert Unsal a4472c6b17 Merge branch 'main' into mert/autodownloadpdf 2025-07-08 16:50:51 +02:00
Nick Sweeting c0cec5266e more screenshot tweaks 2025-07-08 07:45:11 -07:00
Nick Sweeting df35bbd28c better user_data_dir conflict handling 2025-07-08 07:32:10 -07:00
Mert Unsal 0424e7c78d Merge branch 'main' into mert/autodownloadpdf 2025-07-08 16:28:14 +02:00
Nick Sweeting 0b75614924 fallback to tmp user_data_dir in all cases of launch failure 2025-07-08 07:19:26 -07:00
Nick Sweeting 7e9da7019e fix loading animation logo 2025-07-08 07:18:56 -07:00
Nick Sweeting 66d0e79dec get fresh page on every screenshot 2025-07-08 06:55:52 -07:00
Magnus Müller 1958de0562 Merge remote-tracking branch 'origin/main' into refactor-agent-stable 2025-07-08 15:48:21 +02:00
Nick Sweeting 54a413d255 tweak screenshot timing 2025-07-08 05:28:50 -07:00
Nick Sweeting 428d734072 restore global screenshot lock 2025-07-08 05:15:45 -07:00
Nick Sweeting aeaa58fa0b Update browser_use/browser/session.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-07-08 08:10:49 -04:00
Magnus Müller fbc056660c Merge remote-tracking branch 'origin/main' into refactor-agent-stable 2025-07-08 14:06:22 +02:00
Nick Sweeting 7403c33be3 fix user-data-dir matching 2025-07-08 05:05:49 -07:00
Magnus Müller 6d9a865e95 hot-fix-screenshot 2025-07-08 13:32:22 +02:00
mertunsall 4ef8c00092 fix 2025-07-08 12:56:42 +02:00
Mert Unsal c939d63794 Merge branch 'main' into mert/autodownloadpdf 2025-07-08 12:54:17 +02:00
Mert Unsal 5c3f0de8d1 Update browser_use/browser/session.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-07-08 12:51:50 +02:00
mertunsall f3a9c17fcf reorganize 2025-07-08 12:37:24 +02:00
mertunsall 3aee8c815e scroll with cdp call 2025-07-08 12:22:07 +02:00
Nick Sweeting 48086d0cdd use retry decorator from bubus 2025-07-08 03:16:22 -07:00
Nick Sweeting b8b2fc0080 tweak browser launch logging 2025-07-08 02:48:57 -07:00
Nick Sweeting 932953683a fix trustedTypes html and fallback test 2025-07-08 02:45:48 -07:00