Commit Graph

4189 Commits

Author SHA1 Message Date
Matic Zavadlal 441efdf4a1 Update tests.py 2025-02-13 14:47:57 +01:00
Matic Zavadlal 71d6195d77 Update service.py 2025-02-13 14:43:01 +01:00
Matic Zavadlal ce2a1e6839 stash 2025-02-13 14:37:08 +01: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
Matic Zavadlal 88dfabea5b Merge branch 'main' into matic/random 2025-02-13 13:33:09 +01:00
Matic Zavadlal 7d7582586e stash 2025-02-13 13:32:18 +01:00
takuto yuki 7df49b8f10 Fix Use sensitive_data in history_step 2025-02-13 17:02:22 +09:00
Magnus Müller 6dd84bc8b1 Include canvas in extraction 2025-02-12 23:27:31 -08:00
Magnus Müller c452f93327 Simplify input text 2025-02-12 23:27:23 -08:00
Magnus Müller 7a88f1afd2 Fix send_keys for words in natural langugae 2025-02-12 23:03:07 -08:00
Magnus Müller 723a988a08 Fix default disable_security 2025-02-12 23:02:10 -08:00
Magnus Müller 7e40b6d782 Exclude label as interactive, include iframe bodies 2025-02-12 23:00:51 -08:00
Magnus Müller 0ccbb651f6 Extraction test script 2025-02-12 22:59:46 -08: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
Matic Zavadlal 640492aa94 stash 2025-02-10 22:59:35 +01:00
Matic Zavadlal 543d01f250 stash 2025-02-10 22:48:23 +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
SwapnilSonker 92fe9212a9 #544 issue resolved , used chrometabs api 2025-02-08 22:48:46 +05:30
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