428 Commits

Author SHA1 Message Date
Magnus Müller
7260e1c940 Merge pull request #719 from weibing-bab/main
fix: optimize macOS font loading for better CJK support
2025-02-14 06:49:47 -08:00
jersobh
bba15ff4bd add a arg to avoid logging senstive data into input_text actions on controller logs 2025-02-14 11:41:36 +00:00
WeiBing
057ad45c58 Merge branch 'browser-use:main' into main 2025-02-14 11:10:34 +08:00
WeiBing
403773e04e fix: optimize macOS font loading for better CJK support
Following up on #711, some macOS devices still experienced font rendering issues.
This commit:
- Simplifies macOS font options to use only essential fonts
- Uses Hiragino Sans GB as primary font for its complete Unicode support
- Keeps .AppleSystemUIFont as system fallback
- Retains Apple Color Emoji for emoji support

This change ensures more reliable CJK text rendering across different macOS versions
without requiring additional font installations.

Fixes remaining font issues from #711
2025-02-14 10:55:07 +08:00
Magnus Müller
dab504deda Merge pull request #711 from weibing-bab/main
feat: improve multi-language font support in GIF generation
2025-02-13 07:55:26 -08:00
Magnus Müller
4619a957e2 Merge pull request #706 from pppp606/fix/sensitive_data_in_history_step
Fix Pass sensitive_data to multi_act executed via rerun_history
2025-02-13 07:50:35 -08:00
bab
65bc856851 feat: improve multi-language font support in GIF generation
- Add system-specific Unicode font support for Windows/macOS/Linux
- Prioritize native system fonts with good Unicode coverage:
  - Windows: Microsoft YaHei, Segoe UI
  - macOS: PingFang, Apple Color Emoji
  - Linux: DejaVuSans
- Add common fallback fonts for better compatibility
- Add debug logging for font loading
- Improve error handling with informative warnings

This change ensures proper text rendering for multiple languages
in generated GIFs without requiring additional font installations.
2025-02-13 20:57:40 +08:00
takuto yuki
7df49b8f10 Fix Use sensitive_data in history_step 2025-02-13 17:02:22 +09:00
Gregor Žunič
4c92d071b4 Feature/cloud required changes no stop context (#697)
* add force context and browser alive tags

* removed unnecesary comment, better import for BrowserContextConfig
2025-02-12 17:46:01 -08:00
Magnus Müller
04ea25a951 Merge pull request #692 from browser-use/Change-cookie-logging-to-debug
Change cookie logging to debug
2025-02-12 11:01:28 -08:00
Magnus Müller
2430870b9a Change cookie logging to debug 2025-02-12 11:00:46 -08:00
Magnus Müller
7e482de8cd Merge pull request #690 from tomlavez/main
Fixed #669 - Missing playwright exception import
2025-02-12 10:55:44 -08:00
Magnus Müller
af62044b26 Merge pull request #691 from browser-use/reuse-existing-page
If page exists, use it
2025-02-12 10:55:23 -08:00
Magnus Müller
5817d2cdeb If page exists, use it 2025-02-12 10:54:54 -08:00
Tomás
66d9ce8c21 fix/add_playwright_exception_import 2025-02-12 14:02:45 -03:00
Magnus Müller
ae547c4a05 Merge branch 'main' into duplicate_file_download 2025-02-12 08:49:31 -08:00
Magnus Müller
227ad63a84 Merge branch 'main' into patch-1 2025-02-12 08:35:46 -08:00
Magnus Müller
1a2a227cb3 Merge pull request #689 from browser-use/#571-Improve-Text-Input-Handling-in-Browser-Context
#571 improve text input handling in browser context
2025-02-12 08:30:09 -08:00
Magnus Müller
d792481112 Clean up input text 2025-02-12 08:29:35 -08:00
Vishal Rao
3998f278f6 Update context.py to reload when using CDP remote browser
Problem
When using CDP (Chrome DevTools Protocol) connections, page operations were resulting in timeout errors after 30000ms. This specifically occurred during page load state verification:
pythonCopyawait page.wait_for_load_state()
The error manifests in the following call stack:

context.py line 219 - Initial wait_for_load_state call
Propagates through Playwright's async API
Times out in frame implementation while waiting for load state

Solution
Implemented page reloading specifically for CDP connections to prevent these timeout errors. This addresses the underlying issue where the page load state was not being properly detected in CDP scenarios.
Implementation Details

Added conditional page reload for CDP connection types
Maintains existing behavior for non-CDP connections
Ensures proper page load state verification

Testing

Verified fix resolves timeout errors with CDP connections
Confirmed existing functionality remains intact for other connection types

Reference
Solution approach based on discords support ticket - https://discord.com/channels/1303749220842340412/1334218695509016657/1334517519611990056
2025-02-12 14:08:22 +05:30
Magnus Müller
1dec9f27f5 Merge branch 'main' into pr/571 2025-02-11 22:52:25 -08:00
Magnus Müller
5e0af71af8 Merge pull request #570 from takeyaqa/fix_save_conversation_path
fix: ensure save_conversation_path ends with a slash and add tests for conversation logging
2025-02-11 22:39:17 -08:00
Magnus Müller
f8ceb5a047 Merge pull request #641 from PaperBoardOfficial/fix-redundant-a-tag
Fix redundant <a> tag
2025-02-11 22:36:49 -08:00
Magnus Müller
2c0c2970c3 Merge branch 'main' into #582-detect-if-page.evaluate()-works-properly 2025-02-11 22:35:40 -08:00
paperboardofficial
10c50254da added check for empty child for a tag 2025-02-12 11:26:52 +05:30
Magnus Müller
987792087b Fix self.page 2025-02-11 20:30:23 -08:00
Magnus Müller
e60c41398f Merge pull request #600 from k-w-lee/fix-none-startswith
Fix 'NoneType' object has no attribute 'startswith' error (#534)
2025-02-11 20:07:54 -08:00
Magnus Müller
cfc78f3101 Merge pull request #610 from k-w-lee/fix-region-markdown
improve region markdown
2025-02-11 19:58:48 -08:00
Magnus Müller
abd1aeb50e Merge pull request #624 from k-w-lee/fix-agent-test
Fix #611: Fix ImportError in browser_use/agent/tests.py (#611)
2025-02-11 19:51:48 -08:00
Magnus Müller
24700adeb9 Merge pull request #631 from pppp606/pppp606/fix_action_name_in_prompt
Update Prompt Action Names to Align with Current Implementation
2025-02-11 19:18:21 -08:00
Magnus Müller
f393e6591d Merge pull request #637 from vvincent1234/feat/add_extra_args
add extra_chromium_args to real browser
2025-02-11 19:13:29 -08:00
Magnus Müller
a1c7f83908 Merge pull request #643 from mbaynton/tools-fix
Add missing tool descriptions
2025-02-11 19:08:50 -08:00
Magnus Müller
773ebc79c5 Merge pull request #666 from NinoRisteski/main
Update service.py
2025-02-11 19:04:11 -08:00
Sam Chaudry
456cd1bf47 bug fix syntax warning invalid escape 2025-02-11 15:16:58 +00:00
Nino Risteski
2706154d5f Update service.py
the comment might be redundant since the description is 99% what the comment was?
2025-02-11 13:49:11 +01:00
jhachirag7
87411c8ac3 Add missing tool descriptions
Full credit due to @jhachirag7 on this, I've set them as the commit
author. They also opened #602 but it looks like it has some indentation
issue (fixed here) and a few spurious commits and removed files; I only
mean to make it as easy as possible for maintainers to get this merged.

I (mike@mbaynton.com) have tested that with this fix it is possible to
run against AWS Bedrock + Sonnet 3.5 v2.

Fixes #580
2025-02-09 17:50:19 -06:00
vvincent1234
0399846d6c add extra_chromium_args to real browser 2025-02-09 11:35:29 +08:00
Takuto Yuki
6cbd8bad7d Update Action name in prompt 2025-02-09 00:08:41 +09:00
Morris Lee
d395958014 fix assert 2025-02-08 18:39:41 +08:00
Morris Lee
7019df9f56 add page summary into AgentBrain of agent test 2025-02-08 18:34:22 +08:00
Morris Lee
f3a9aa93fb add interacted element into agent test of BrowserStateHistory class 2025-02-08 18:33:20 +08:00
Morris Lee
defec5b9f6 to fix agent test by adding ExtractPageContentAction into controller views 2025-02-08 18:28:46 +08:00
Matic Zavadlal
4d1040d073 Update buildDomTree.js 2025-02-07 18:58:38 +01:00
Matic Zavadlal
81056a2f37 Update buildDomTree.js 2025-02-07 18:56:59 +01:00
Matic Zavadlal
76614f09d0 ignore highlight elements 2025-02-07 18:50:16 +01:00
Morris Lee
09bf047e62 improve region markdown 2025-02-08 00:49:16 +08:00
Lee
76de514f6f Fix 'NoneType' object has no attribute 'startswith' error (#534) 2025-02-07 18:22:11 +08:00
Matic Zavadlal
45d5b1d104 Update views.py 2025-02-07 01:17:07 +01:00
Matic Zavadlal
a433c476d1 cleanup 2025-02-07 01:13:16 +01:00
Matic Zavadlal
76f7516e9b mem 2025-02-06 22:17:54 +01:00