Commit Graph

56 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
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
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
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
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
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
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
Nick Sweeting
3a86fac15f minor comments and logging improvements 2025-05-23 18:21:18 -07:00
Evgeny Kim
2cba10dafc Codestyle fixes 2025-05-23 13:31:52 +02:00
Evgeny Kim
5da261310b Improve file upload detection 2025-05-23 13:05:06 +02:00
Nick Sweeting
cbdaac7ef0 Update browser_use/browser/session.py 2025-05-23 04:42:25 -04:00
Nick Sweeting
22bf1c30c6 Merge branch 'main' into bug-bash 2025-05-23 01:40:58 -07:00
Nick Sweeting
39ef1e5d09 more logging and emoji tweaks to improve navigation, page idle, loading messages 2025-05-23 01:31:55 -07:00
Nick Sweeting
f6ca4e13a3 massively improve logging experience and add loading animation on browser startup 2025-05-23 00:48:52 -07:00
Yasith Jayawardana
972c50f1d5 removed the duplicate _input_text_element_node() function from session.py 2025-05-23 08:21:09 +09:00
Nick Sweeting
187641f695 add support for nested sensitive_data 2025-05-22 04:58:23 -07:00
Nick Sweeting
6c74b09e22 fix keep_alive logic 2025-05-22 03:28:28 -07:00
Nick Sweeting
11eabb3601 improvements to allowed_domains checking security 2025-05-22 03:21:25 -07:00
Nick Sweeting
cb4a5145f2 fix two bugs in BrowserSession and controller action passing 2025-05-22 02:30:41 -07:00
Magnus Müller
644969a848 Remove redundant URL assertions in BrowserSession class for cleaner code. 2025-05-21 13:53:15 +02:00
yasithdev
b491c87144 fix few bugs due to api changes, conditional logics, and null type-checks 2025-05-21 01:38:04 -05:00
Nick Sweeting
0e6102db3b more dead code removal 2025-05-20 06:42:24 -07:00
Nick Sweeting
c6504da9ea more stealth browser launch tuning 2025-05-20 06:05:35 -07:00
Nick Sweeting
2f002b4c22 rename session.py profile.py, fix stealth example, fix tests 2025-05-20 05:34:47 -07:00