Commit Graph

421 Commits

Author SHA1 Message Date
Nick Sweeting
b45a69ff7c fix sub-attr set 2025-06-02 17:31:13 -07:00
Nick Sweeting
771ec25ade add BrowserSession.kill method to get around keep_alive=False 2025-06-02 17:28:13 -07:00
Nick Sweeting
9f1006b0ac prevent _log_pretty_path from showing raw cookie values in logs 2025-05-31 15:09:28 -07:00
tinkerer-shubh
c461d77285 fix formatting 2025-05-31 19:26:25 +05:30
tinkerer-shubh
3582a4922e feat: convert synchronous file operations to async in BrowserSession - Convert 6 file operations from sync to async using anyio.Path() - Fix critical merge logic bug in save_storage_state - Improves I/O performance by preventing event loop blocking - Maintains backward compatibility and existing error handling 2025-05-31 19:11:00 +05:30
Nick Sweeting
d41ee112b0 fix downloads check on click timing out 2025-05-30 03:56:42 -07:00
Nick Sweeting
6cc01c71e6 fix timeouterror on download 2025-05-30 03:52:24 -07:00
Nick Sweeting
2d8667dd6c fix attr doesnt exist 2025-05-29 20:15:53 -07:00
Nick Sweeting
2e3550ebec auto-load storage_state into remote browsers as well, use downloads_dir for everything 2025-05-29 17:58:47 -07:00
Nick Sweeting
a85ae8ca3c merge save_downloads_path and downloads_dir duplicate options 2025-05-29 14:51:21 -07:00
Nick Sweeting
4391eeba4d re-enable scrollbars in screenshots 2025-05-29 11:45:06 -07:00
Nick Sweeting
0478987258 Add screenshot timeout and fallback method when full-page screenshot times out (#1829) 2025-05-28 03:15:18 -07:00
Nick Sweeting
42b8d4992a Merge branch 'main' into hot-fix/interactive-element-event-checking 2025-05-28 02:50:34 -07:00
Nick Sweeting
93e1e246ce Update browser_use/browser/session.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-05-28 05:21:17 -04:00
Nick Sweeting
b6ee0d1284 handle waiting for fonts to load error 2025-05-28 02:12:19 -07:00
Nick Sweeting
a5225c9fc4 add fallback method for full-page screenshots 2025-05-28 02:00:26 -07:00
Nick Sweeting
26e5853150 limit screenshot wait for load timeout 2025-05-28 01:17:09 -07:00
Nick Sweeting
4b48900af9 show warning when BrowserSession gets conflicting config params 2025-05-27 23:34:23 -07:00
Nick Sweeting
191544705e also save storage_state in save_cookies 2025-05-27 22:31:32 -07:00
Nick Sweeting
2ff49d14d7 Update browser_use/browser/session.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-05-28 00:04:17 -04:00
Nick Sweeting
f5bb3828a0 re-add support for cookies_file param 2025-05-27 20:50:31 -07:00
Nick Sweeting
02ec9c8c6a improve BrowserSession auto-restart on disconnection logic 2025-05-27 17:09:02 -07:00
Nick Sweeting
a03d4a9b13 fix issue 1817 BrowserSession.create_new_tab was never awaited 2025-05-27 15:55:51 -07:00
Alezander9
bf13e9dca7 remove problematic env display inherit code 2025-05-26 20:12:09 -07:00
Nick Sweeting
74afa65d69 remove dead code, cleanup examples and tests 2025-05-26 18:38:30 -07:00
Nick Sweeting
f19adf9bb3 remove dead code, cleanup examples and tests 2025-05-26 18:37:52 -07:00
Nick Sweeting
c2db247bac Add support for browser-use -p 'some prompt here...' oneshot CLI (#1797) 2025-05-26 18:30:14 -07:00
Nick Sweeting
94c6d50253 fix screen and viewport logic 2025-05-26 17:35:56 -07:00
Nick Sweeting
bfb6b26274 Merge branch 'main' into new-eval 2025-05-25 18:58:08 -07:00
Nick Sweeting
04999c91f7 fix annoying deprecation warnings 2025-05-25 14:09:32 -07:00
Nick Sweeting
89f83c9e89 test fix 2025-05-25 06:49:25 -07:00
Nick Sweeting
a5b99f9b7f fix re-use of BrowserSession between agents by copying on Agent init 2025-05-25 06:38:43 -07:00
Nick Sweeting
2328986236 fix BrowserSession init on reuse case 2025-05-25 06:00:25 -07:00
Nick Sweeting
8ddb5a68f5 better wait action tests 2025-05-25 05:06:15 -07:00
Nick Sweeting
ee62541042 Merge branch 'main' into docs-improvements 2025-05-25 03:50:55 -07:00
Nick Sweeting
855efe8e7d Auto-inherit DISPLAY env var in headful mode (#1777) 2025-05-25 01:31:11 -07:00
Nick Sweeting
75f14c4784 checkpoint 2025-05-24 20:41:44 -07:00
Austin
658abfeeef fix: remove trailing whitespace to pass linter 2025-05-24 20:24:44 -07:00
Austin
c1274fa1de inherit dispaly env var in headful mode 2025-05-24 20:16:23 -07:00
2pac
dd23030bc5 cubic comments 2025-05-24 19:33:37 +02:00
2pac
6a5b6ead1b fix: Binding already registered issue on follow-up task 2025-05-24 19:26:21 +02:00
Alezander9
1f113fa640 Merge remote-tracking branch 'upstream/main' into new-eval 2025-05-24 10:25:43 -07:00
mingzhong.li
0e2532664d fix: delete useless console.log 2025-05-24 22:38:54 +08:00
mingzhong.li
e3cb1fbfc4 refactor: change init_script 2 context create 2025-05-24 22:31:51 +08:00
mingzhong.li
c0a936e54c fix: fixing interactive element event checking:
1. add event_listeners_script
2. adding getEventListenersForNode in buildDomTree.js for checking element event
2025-05-24 20:50:33 +08:00
Nick Sweeting
08726575ac simplify close messages 2025-05-23 22:05:19 -07:00
Nick Sweeting
fd555173e9 shorter log lines around browsersession closing 2025-05-23 19:43:39 -07:00
Nick Sweeting
3488c0e8b7 better browser logging on close 2025-05-23 19:37:47 -07:00
Nick Sweeting
a75fd48b77 ensure session is always initialized when getting current page 2025-05-23 18:21:18 -07:00
Nick Sweeting
14c2472714 resize the actual browser window when not using viewport 2025-05-23 18:21:18 -07:00