Commit Graph

6671 Commits

Author SHA1 Message Date
kalil0321
dca312273f Add dom_highlight_elements attribute to BrowserSession 2025-09-29 15:38:22 +02:00
kalil0321
3aa5cfde41 Rename 'debug_highlight_elements' to 'dom_highlight_elements' in BrowserProfile for clarity 2025-09-29 15:37:31 +02:00
kalil0321
d319eef3e9 Update DOMWatchdog to use debug_highlight_elements for browser-side highlights 2025-09-29 15:07:33 +02:00
kalil0321
ec8ad39ee2 Separate python highlighting and DOM highlighting by creating a debug_highlight_element 2025-09-29 15:07:23 +02:00
kalil0321
345ddedc8d Update default value of highlight_elements to False in BrowserProfile class 2025-09-29 14:54:57 +02:00
kalil0321
4213e5c4a7 Merge branch 'main' into previous-highlighting 2025-09-29 14:34:32 +02:00
Saurav Panda
76fd08fdc8 redirect for get-browser-profile and v2/quickstart (#3203)
the top google links point to deprecated docs, so redirect:
"/api-reference/browser-profiles/get-browser-profile" ->
"/api-reference/profiles/get-browser-profile"
"/cloud/v2/quickstart" -> "/cloud/v1/quickstart"
    
<!-- This is an auto-generated description by cubic. -->
---

## Summary by cubic
Update docs redirects so popular Google links point to current pages and
avoid deprecated content.
- /api-reference/browser-profiles/get-browser-profile ->
/api-reference/profiles/get-browser-profile
- /cloud/v2/quickstart -> /cloud/v1/quickstart

<!-- End of auto-generated description by cubic. -->
2025-09-26 22:10:53 -07:00
ShawnPana
f6537209a0 absolute url to redirect to new cloud docs 2025-09-26 20:34:19 -07:00
ShawnPana
44513f544d absolute url to redirect to new cloud docs 2025-09-26 19:30:24 -07:00
ShawnPana
2a04b9bd14 redirect for get-browser-profile and v2/quickstart 2025-09-26 19:13:53 -07:00
Magnus Müller
ebe04a0136 remove temp from gemini (#3202)
Auto-generated PR for: remove temp from gemini

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Moves ChatGoogle instantiation into run_search and removes the
temperature parameter in the gemini example.
> 
> - **Examples**:
>   - **`examples/models/gemini.py`**:
> - Move `llm = ChatGoogle(...)` into `run_search()` and remove
`temperature` argument.
>     - Reorder `Agent` initialization args (pass `llm` before `task`).
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
ea551e8b6c. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2025-09-26 17:50:45 -07:00
Magnus Müller
5edced04d9 Merge branch 'main' into remove-temp-from-gemini 2025-09-26 17:50:37 -07:00
Magnus Müller
ea551e8b6c remove temp from gemini 2025-09-26 17:50:21 -07:00
Magnus Müller
5676c8eef0 change gemini 2.5 flash to gemini latest (#3201)
Auto-generated PR for: change gemini 2.5 flash to gemini latest

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Adds support for `gemini-flash-latest` and `gemini-flash-lite-latest`
and updates docs/examples to use these models instead of
`gemini-2.5-flash`.
> 
> - **LLM (Google Gemini)**:
> - Add `gemini-flash-latest` and `gemini-flash-lite-latest` to
`VerifiedGeminiModels` in `browser_use/llm/google/chat.py`.
> - **Docs & Examples**:
> - Replace `gemini-2.5-flash` with `gemini-flash-latest` across
`README.md`, `docs/quickstart.mdx`,
`docs/customize/agent/supported-models.mdx`,
`examples/models/gemini.py`, and `examples/simple.py`.
> - Use `gemini-flash-lite-latest` in speed-focused examples:
`docs/examples/templates/fast-agent.mdx`,
`examples/getting_started/05_fast_agent.py`.
>   - Update recommendation bullet to prefer `gemini-flash-latest`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
9a6181afd7. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2025-09-26 16:03:53 -07:00
Magnus Müller
9a6181afd7 Update fast example 2025-09-26 15:57:53 -07:00
Magnus Müller
6f1c6c510d Linter 2025-09-26 15:56:56 -07:00
Magnus Müller
781f948bb8 change gemini 2.5 flash to gemini latest 2025-09-26 15:54:19 -07:00
Magnus Müller
b070f6c4fe fix-gemini-thinking-budget-for-latest-lite-version (#3199)
Auto-generated PR for:
fix-gemini-thinking-budget-for-latest-lite-version
2025-09-26 12:09:27 -07:00
Magnus Müller
73a22dab51 Merge branch 'main' into fix-gemini-thinking-budget-for-latest-lite-version 2025-09-26 12:09:14 -07:00
Magnus Müller
6c7b5cd622 fix-gemini-thinking-budget-for-latest-lite-version 2025-09-26 12:09:03 -07:00
Magnus Müller
d068280ab0 fix-gemini-thinking-budget-for-latest-version (#3198)
Auto-generated PR for: fix-gemini-thinking-budget-for-latest-version
2025-09-26 11:54:19 -07:00
Magnus Müller
a33e0dfb89 Merge branch 'main' into fix-gemini-thinking-budget-for-latest-version 2025-09-26 11:54:08 -07:00
Magnus Müller
6d77cc6bb9 fix-gemini-thinking-budget-for-latest-version 2025-09-26 11:53:58 -07:00
Magnus Müller
32c1eecf5e fix gemini client (#3197)
Auto-generated PR for: fix gemini client
2025-09-26 09:50:24 -07:00
Magnus Müller
db27b32b04 fix gemini client 2025-09-26 09:50:01 -07:00
Mert Unsal
6a416a3077 Add examples on how to prohibit domain (#3188)
Add this feature to the documentation and an example on how to use it. 
    
<!-- This is an auto-generated description by cubic. -->
---

## Summary by cubic
Documented the prohibited_domains browser setting and added a runnable
example that blocks navigation to selected domains and subdomains. When
both lists are set, allowed_domains still takes precedence.

- New Features
- Documented prohibited_domains in all-parameters.mdx, including pattern
formats and precedence over allowed_domains.
- Added examples/features/blocked_domains.py showing how to configure
BrowserProfile with prohibited_domains and run an agent.

<!-- End of auto-generated description by cubic. -->
2025-09-24 20:27:12 +02:00
Mert Unsal
2aaddc0339 Update docs/customize/browser/all-parameters.mdx
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-09-24 20:26:13 +02:00
Chris Schnabl
63d9b57744 Add exmamples on how to prohibit domain 2025-09-24 11:07:40 -07:00
Magnus Müller
9b969a5774 Add laminar debug tags (#3186)
<!-- This is an auto-generated description by cubic. -->

## Summary by cubic
Added Laminar debug tags to observability spans and temporarily forced
debug mode to True to surface more debug data.

- **New Features**
- Tags added: ['observe', 'observe_debug'] in my_function;
['observe_debug'] in debug_function.

- **Migration**
- Create 'observe' and 'observe_debug' tags in Laminar before deploying.

<!-- End of auto-generated description by cubic. -->
2025-09-23 21:45:10 -07:00
Chris Schnabl
a28fdb6578 Code style 2025-09-23 20:03:26 -07:00
Chris Schnabl
bd6ac42a2e Undo debug mode 2025-09-23 19:59:58 -07:00
Chris Schnabl
ddfe530037 Test debug 2025-09-23 19:56:41 -07:00
Chris Schnabl
3a870e6547 Merge branch 'main' of https://github.com/browser-use/browser-use into add-laminar-debug-tags 2025-09-23 19:39:51 -07:00
Mert Unsal
eb45b03d6d Replace aiofiles with anyio.Path (#3030)
Reduces a dependency
    
<!-- This is an auto-generated description by cubic. -->
---

## Summary by cubic
Replaced aiofiles with anyio.Path for async file I/O to reduce
dependencies and simplify code. Also updated DownloadsWatchdog to react
to BrowserStateRequestEvent, improving PDF download flow.

- New Features
- DownloadsWatchdog listens to BrowserStateRequestEvent and dispatches a
NavigationCompleteEvent with the current URL and target_id.

- Refactors
- Swapped aiofiles for anyio.Path.read_text/write_text across DOM
playground, Gmail auth, pricing cache, examples, and CI task runner.
  - Removed aiofiles from pyproject.toml dependencies.

<!-- End of auto-generated description by cubic. -->
2025-09-23 10:27:51 +02:00
Cyrus
9343371cd7 Merge branch 'main' into anyio-path 2025-09-22 20:19:34 -06:00
Cyrus
247ed196a6 Merge branch 'main' into anyio-path 2025-09-22 20:18:05 -06:00
Magnus Müller
3d313dfb5c speed-ups3 (#3180)
Auto-generated PR for branch: speed-ups3
    
<!-- This is an auto-generated description by cubic. -->
---

## Summary by cubic
Improves browsing speed and reliability with a simplified search tool,
viewport-aware scrolling, and more robust tab management. Also caps
agent history sizes and tunes LLM defaults to reduce timeouts and
errors.

- **New Features**
- Replaced SearchGoogleAction with a unified SearchAction that supports
duckduckgo (default), google, and bing; defaults to DuckDuckGo to avoid
reCAPTCHA. Backward-compatible alias kept.
- Viewport-aware scrolling: scrolls one page at a time for multi-page
requests; uses detected viewport height and handles fractional pages.
- Gemini defaults updated: max_output_tokens increased to 8192;
thinking_budget defaults to 0 for flash/flash-lite.

- **Bug Fixes**
- Hardened tab switching and closing: validate target IDs, clean up
stale sessions, and don’t fail if a tab is already closed.
- Added target validity checks and session cleanup in the session pool.
- Enforced 60k character limits for read_state_description and
action_results with clear truncation notices.
- Refined model timeouts (Gemini 45s, Groq 30s) and fixed
ModelProviderError initialization to preserve message and status_code.

<!-- End of auto-generated description by cubic. -->
2025-09-22 18:56:44 -07:00
Magnus Müller
8bfef7e41d Merge branch 'speed-ups3' of https://github.com/browser-use/browser-use into speed-ups3 2025-09-22 18:53:13 -07:00
Magnus Müller
97a1ef1aa4 Update search google 2025-09-22 18:53:11 -07:00
Magnus Müller
ac1e79e815 Merge branch 'main' into speed-ups3 2025-09-22 18:51:14 -07:00
Mert Unsal
bcd2a07967 fix scroll to text action bug (#3181)
bugfix.
2025-09-23 03:45:48 +02:00
mertunsall
6d30f36ee7 fix scroll to text action bug 2025-09-23 03:44:55 +02:00
Magnus Müller
dc34a5edb0 Update search google 2025-09-22 18:43:14 -07:00
Magnus Müller
cf0ad68b4c Merge branch 'speed-ups3' of https://github.com/browser-use/browser-use into speed-ups3 2025-09-22 18:37:59 -07:00
Magnus Müller
343b766b09 Comment 2025-09-22 18:37:57 -07:00
Magnus Müller
c8e00e4511 Update browser_use/llm/google/chat.py
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-09-22 18:35:26 -07:00
Magnus Müller
27c3ea2b86 Remove test 2025-09-22 18:29:29 -07:00
Magnus Müller
daee190e75 Linter 2025-09-22 18:25:19 -07:00
Magnus Müller
5261e759b8 Merge branch 'speed-ups3' of https://github.com/browser-use/browser-use into speed-ups3 2025-09-22 18:24:27 -07:00
Magnus Müller
e496c3a93f Merge branch 'main' into speed-ups3 2025-09-22 18:24:21 -07:00