Commit Graph

211 Commits

Author SHA1 Message Date
Nick Sweeting
50ade97062 simplify open_tab action 2025-05-23 00:58:09 -07:00
Nick Sweeting
f6ca4e13a3 massively improve logging experience and add loading animation on browser startup 2025-05-23 00:48:52 -07:00
Nick Sweeting
fbf52be11b improve logging and use scheme matching for google urls 2025-05-22 23:25:17 -07:00
Nick Sweeting
6b8360c475 better logging 2025-05-22 23:17:21 -07:00
Nick Sweeting
38d8b6acec Merge branch 'main' into security-improvements 2025-05-22 17:11:16 -07:00
Nick Sweeting
472d462fa7 minor fixes for proxy models and positional args in google sheets actions 2025-05-22 17:06:22 -07:00
Nick Sweeting
651db76040 fix multiple browser_session arg error 2025-05-22 07:01:51 -07:00
Nick Sweeting
5cbb48a718 tweak controller action param setup to avoid double browser_session arg 2025-05-22 06:55:47 -07:00
Nick Sweeting
643a88b734 Fix async function call in Google Sheets select_cell_or_range
Made select_cell_or_range an async function and properly await the call to _select_cell_or_range to fix TypeError.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-22 05:00:36 -07:00
Nick Sweeting
187641f695 add support for nested sensitive_data 2025-05-22 04:58:23 -07:00
Nick Sweeting
c50b3bd828 fix browser_session decorating 2025-05-22 03:32:05 -07:00
Magnus Müller
4bd407f6c5 Enhance extract_content action to include link retrieval option
- Updated the `extract_content` action to add an `include_links` parameter, allowing users to specify whether to include links in the extracted content.
- Revised the action's description for clarity, emphasizing the structured format of the output when links are included.
2025-05-22 12:05:05 +02:00
Magnus Müller
9261112c51 Add new action to retrieve accessibility tree from the current page
- Introduced a new asynchronous action `get_ax_tree` that extracts the accessibility tree of the current page in a "role name" format.
- Implemented a helper function to flatten the accessibility tree structure and log the results.
- Enhanced logging to provide insights into the accessibility structure of the page for better debugging and analysis.
2025-05-22 12:03:34 +02:00
Nick Sweeting
b92fffae2e fix google sheets example 2025-05-22 02:30:43 -07:00
Nick Sweeting
cb4a5145f2 fix two bugs in BrowserSession and controller action passing 2025-05-22 02:30:41 -07:00
Nick Sweeting
a84b1c6d6b Merge branch 'main' into browser-session 2025-05-20 03:10:37 -07:00
Nick Sweeting
86ec6a78b0 new BrowserSession and BrowserProfile design, renamed BrowserState to BrowserStateSummary and more 2025-05-20 02:31:54 -07:00
Guido Trevisan
2c7dd75bf0 Apply Ruff formatting 2025-05-17 20:11:05 -05:00
Guido Trevisan
f94d889640 fixed scroll when whole page lives inside a nested container 2025-05-17 19:24:03 -05:00
Nick Sweeting
90dad4a39a refactor to use new BrowserSession model 2025-05-17 04:54:13 -07:00
Nick Sweeting
21cb86e66a Merge branch 'main' into back-to-playwright 2025-05-12 05:31:23 -07:00
satya-nutella
0b0319bb83 fix(context, service): streamline element visibility checks
- Replaced direct calls to `is_hidden` with a new `_is_visible` method for consistency in visibility checks across the context and service layers.
- Updated element selection logic to ensure only visible elements are scrolled into view, improving reliability and performance.
2025-05-11 08:56:17 -07:00
Nick Sweeting
96682d8910 switch back from patchright to playwright until issues are resolved 2025-05-09 18:14:07 -07:00
Nick Sweeting
28906fd5d6 print a warning if any required sensitive data keys are not defined 2025-05-04 20:18:52 +08:00
Nick Sweeting
23252192a0 remove non-functional group tabs code 2025-05-04 19:40:27 +08:00
Nick Sweeting
3323a3ca21 remove unused var assignment 2025-05-04 18:43:24 +08:00
Nick Sweeting
7f065aafd9 massively improve foreground and agent current tab detection and viewport resizing 2025-05-04 17:56:51 +08:00
Nick Sweeting
af849b5c4d add google sheets support using keyboard shortcuts directly to main controller 2025-05-03 03:20:13 +08:00
Nick Sweeting
2be4ba4f70 more pyupgrade changes 2025-05-02 20:50:21 +08:00
Bohdan Petryshyn
cfb628f2ee fix: preserve pydantic model in _replace_sensitive_data
Signed-off-by: Bohdan Petryshyn <b.y.petryshyn@gmail.com>
2025-04-29 07:52:22 +08:00
Nick Sweeting
6f3184f100 Merge pull request #1313 from Haskely/fix/use-ainvoke-for-async 2025-04-21 11:41:43 -07:00
Nick Sweeting
1ac623f798 Merge pull request #857 from neo773/bot-detection-batch 2025-04-21 09:56:27 -07:00
Nick Sweeting
dc59dedbb5 cleanup console colors on exit and silence some unneeded debug logs 2025-04-16 18:11:46 -07:00
Nick Sweeting
8ba3e570e6 Merge branch 'main' into bot-detection-batch 2025-04-16 15:19:02 -07:00
Gregor Žunič
922ad08fd7 removed random unnecesary functions from controller 2025-04-14 11:22:55 +02:00
Gregor Žunič
facab7c9d1 Merge branch 'main' into gregor/lib-53-fix-extraction-layer-problems 2025-04-14 11:15:01 +02:00
Gregor Žunič
dd29dfb7c7 removed click_element_by_text and click_element_by_xpath from default controller 2025-04-14 09:55:55 +02:00
neo773
c33c3aeb35 Merge branch 'main' into bot-detection-batch 2025-04-12 07:25:58 +05:30
LarsenCundric
5d30fefb42 Ensure element handle is visible before trying to scroll into view 2025-04-09 16:58:22 +02:00
Haskely
026ac9551a refactor(controller): use ainvoke for async LLM call in extract_content 2025-04-08 12:09:02 +08:00
Gregor Žunič
62f69caa61 click element by text was used way too much 2025-04-07 14:47:34 +02:00
Gregor Žunič
27b22a3986 Update extraction branch (#1296)
* Add http_credentials to browser context.

* Detect index change caused by page change in `multi_act`

* Fix: Add sameSite cookie validation and auto-correction

* added drag drop action

* added drag drop action

* pre-commit run -a (again)

* added active_tab state management

* add anthropic RateLimitError to list of defined rate limit errors

* Add Retry handling to bedrock example

* fix pydantic issue causing config to be overwritten

* fix config setup

* Add botocore, organize imports

* ignore langchain beta warnings

* silence pydantic deprecation warnings

* Update bedrock_claude for ruff

* ruff checks

* Update pyproject.toml and bedrock_claude.py

* ignore signal registration errors in edge case environments

* ruff fixes

* add example of getting 2FA code from 1password

* add rebrowser and creepjs to stealth tests

* Fix typos discovered by codespell

* uv add --dev codespell

* Update browser_use/browser/context.py

* lint

* Add explanations override_system_message and extend_system_message

* Update custom-functions.mdx

.get_current_page() is an async function which have to be awaited.

* Fix: Remove unnecessary await from _verified_api_keys

* Fix: Correct indentation for cookie loading log message in BrowserContext

* Fix: resolve undefined response variable in Deepseek model raw tool calling mode

* fix: increment consecutive_failure on every step error

* Fix azure example not working due to agent memory changes

* dont expose debug port on all addresses and keep security enabled by default

* custom browser addition

---------

Co-authored-by: Bartlomiej Wietrak <bartekwietrak@gmail.com>
Co-authored-by: Alin Jiang <alineveryday@outlook.com>
Co-authored-by: dipfocus <dipfocus@gmail.com>
Co-authored-by: PaperBoardOfficial <hiremohitforsoftwarerole@gmail.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Alezander9 <alexander.j.yue@gmail.com>
Co-authored-by: dheerajoruganty <db2winfb@gmail.com>
Co-authored-by: Nick Sweeting <git@sweeting.me>
Co-authored-by: Dheeraj Oruganty <53569374+dheerajoruganty@users.noreply.github.com>
Co-authored-by: Bart <46058081+b0rgcube@users.noreply.github.com>
Co-authored-by: Nick Sweeting <github@sweeting.me>
Co-authored-by: pppp606 <ppppp303@gmail.com>
Co-authored-by: Oswy <74738120+oswy-cpu@users.noreply.github.com>
Co-authored-by: BurnyCoder <happymancz@email.cz>
Co-authored-by: zhushijie <mr.zhushijie@gmail.com>
Co-authored-by: john-rtr <jonathan.ratier@gmail.com>
Co-authored-by: mathisarends-viadee <mathis.arends@viadee.de>
Co-authored-by: lorenss-m <saeclmusic@gmail.com>
Co-authored-by: Magnus Müller <67061560+MagMueller@users.noreply.github.com>
2025-04-05 19:08:50 +02:00
neo773
c5dc3d7cfa fix CSP, Shadow DOM & Migrate to Patchright 2025-04-02 07:05:39 +05:30
PaperBoardOfficial
ae4a423e3d lint 2025-04-01 08:14:15 +05:30
Nick Sweeting
298db41c4a Merge branch 'main' into drag_drop 2025-03-31 19:33:28 -07:00
PaperBoardOfficial
9f8218f556 resolved merge conflicts 2025-03-31 16:49:26 +05:30
Christian Clauss
e7c3f43808 Fix typos discovered by codespell 2025-03-31 07:47:56 +02:00
Nick Sweeting
5fa2e133b8 fix pydantic issue causing config to be overwritten 2025-03-30 14:38:12 -07:00
Nick Sweeting
8ba9934542 make it not a hard error if no required keys are set for a model 2025-03-29 20:56:35 -07:00
Nick Sweeting
ccc673bb42 Update browser_use/controller/service.py 2025-03-29 05:41:46 -04:00