Commit Graph

1467 Commits

Author SHA1 Message Date
Magnus Müller d7969c1a93 Merge branch 'main' into fix/cdp-viewport-initialization 2025-09-06 04:05:16 -07:00
Magnus Müller 94dfc3cefe Fixed user_agent param (#2945)
<!-- This is an auto-generated description by cubic. -->

## Summary by cubic
Ensure custom user agent is applied by adding the --user-agent flag to
browser launch args. Fixes the ignored user_agent setting so pages load
with the expected UA.

<!-- End of auto-generated description by cubic. -->
2025-09-06 04:03:08 -07:00
r c92ae8269b Remove unused screenshot constants
Removed MAX_SCREENSHOT_HEIGHT and MAX_SCREENSHOT_WIDTH constants that were not being used anywhere in the codebase.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-06 18:00:23 +09:00
Magnus Müller 770955e0b0 Update PopupsWatchdog to automatically accept JavaScript dialogs instead of dismissing them. Adjust logging messages accordingly and remove unused post-dialog recovery method. 2025-09-04 16:32:37 -07:00
Magnus Müller 3a7ae8d8d6 popup works 2025-09-04 16:07:05 -07:00
Gregor Žunič 484062bd83 fixed user_agent param 2025-09-03 16:07:29 -07:00
Magnus Müller 2bb18c899c Remove unused observability decorator from detect_display_configuration method in profile.py 2025-09-03 15:22:15 -07:00
Magnus Müller e7897a90d9 Remove overlays 2025-09-03 15:14:18 -07:00
Magnus Müller 4f891cd5f6 Remove gc 2025-09-03 15:14:00 -07:00
Magnus Müller 198f343c6a Refactor type hint for font cache and function return type in python_highlights.py
Updated the type hint for the _FONT_CACHE dictionary to use a union type for better clarity. Modified the return type of get_cross_platform_font function to reflect the same change, enhancing type safety and readability.
2025-09-03 14:21:19 -07:00
Magnus Müller 53e5858d8e fix-pil-import 2025-09-03 14:19:23 -07:00
Pierre Lalet 973b585905 Fix patterns use in allowed_domains
This will make "https://www.example.com" match "https://*.example.com", which
is currently no longer the case.

Also, update the exact match logic to match the logic in pattern matching.
2025-09-02 09:47:21 +02:00
Saurav Panda 5b202be744 Merge branch 'main' into fix-disable-security-bug 2025-09-01 15:08:25 -07:00
Jay Ozer b14fef2cf7 style: ruff-format adjustments in downloads_watchdog 2025-09-01 09:32:22 -07:00
Jay Ozer 5891ed3054 fix(downloads): move CDP handlers outside try; tabs indentation; align except 2025-09-01 09:26:32 -07:00
Jay Ozer 184030d36a fix(downloads): define download_progress_handler in outer scope and keep tab indentation 2025-09-01 09:05:56 -07:00
Jay Ozer a874d2c046 fix(downloads): prevent duplicate local downloads via single-dispatch; disable local JS fetch 2025-09-01 07:56:17 -07:00
Magnus Müller 37c177e840 reduce frequency_penalty 2025-08-31 14:19:39 -07:00
Magnus Müller a915a0b95c Refactor navigate_to function and update tool descriptions for improved clarity and efficiency. 2025-08-31 13:50:54 -07:00
Magnus Müller 37573edd2e navigate_to function 2025-08-31 12:34:38 -07:00
Saurav Panda 97a9dca021 Merge branch 'main' into fix-disable-security-bug 2025-08-31 12:20:08 -07:00
Magnus Müller a652335316 Remove outdated methods 2025-08-31 11:31:32 -07:00
Magnus Müller 33f69b1525 less-timeouts 2025-08-31 11:18:47 -07:00
Magnus Müller 486c631132 Fix noqa 2025-08-31 10:35:14 -07:00
Magnus Müller d9e06700bd fix-viewport 2025-08-31 10:25:29 -07:00
Saurav Panda 7e32e5be74 Merge branch 'main' into fix-disable-security-bug 2025-08-31 09:49:44 -07:00
Magnus Müller 833ad7128d Remove comment 2025-08-31 09:34:45 -07:00
Magnus Müller 1b5b360ae8 smaller-highlights-with-screensize 2025-08-31 09:29:18 -07:00
Magnus Müller bbd24f7d5d Merge branch 'main' into new-tab-info 2025-08-31 08:45:51 -07:00
Magnus Müller e10826ca34 Fix Bug: Async Function Error in Screenshot Handling 2025-08-31 08:45:00 -07:00
Magnus Müller 138cc076fe Refactor DefaultActionWatchdog to improve tab handling and metadata return
- Reduced sleep duration in the watchdog from 0.5s to 0.25s for efficiency.
- Added logic to track if a new tab was opened and included this information in the returned click metadata.
- Updated ClickElementAction to handle optional Ctrl key behavior and reflect new tab opening in memory logging.
2025-08-31 08:37:15 -07:00
Magnus Müller 929489352e Len to show highlight index set less than 3 2025-08-31 08:18:12 -07:00
Mert Unsal ea5c6b558e Enable highlights by default 2025-08-31 08:17:23 -07:00
Magnus Müller 0caa3546c3 Merge branch 'smaller-highlights' of https://github.com/browser-use/browser-use into smaller-highlights 2025-08-31 08:14:35 -07:00
Magnus Müller 8ecc46daf6 Update system prompts for clarity and adjust bounding box rendering in Python highlights
- Revised system prompt descriptions to clarify the provision of screenshots and bounding boxes for interactive elements.
- Enhanced bounding box positioning logic in `python_highlights.py` to improve visibility and avoid content blocking.
- Updated screenshot logging to reflect dynamic filename usage.
2025-08-31 08:14:32 -07:00
Magnus Müller c36ea38e78 Merge branch 'main' into smaller-highlights 2025-08-31 07:57:52 -07:00
Magnus Müller 20193556a1 Add PNG files to .gitignore and refactor screenshot saving in Python highlights
- Updated .gitignore to exclude PNG files.
- Refactored the screenshot saving logic in `python_highlights.py` to use an environment variable for the filename and added async file writing for improved performance.
- Adjusted font size and padding to fixed values for consistent appearance across different screen sizes.
2025-08-31 07:57:24 -07:00
Magnus Müller 81461cdfff Adjust font size and padding calculations for enhanced bounding box rendering in Python highlights; update task description in example script for clarity. 2025-08-31 07:43:38 -07:00
mertunsall 6de9261b85 disable highlights by default 2025-08-31 12:46:24 +02:00
mertunsall 5bce1b6898 enable auto download pdfs 2025-08-31 12:40:24 +02:00
Magnus Müller 30b2d631f9 Merge commit 'cb63d579bd61c4239125780d1d658d2eada36a1b' into remove-efficiency-rules 2025-08-30 18:33:56 -07:00
Magnus Müller 889657a273 Linter 2025-08-30 18:30:49 -07:00
Magnus Müller 84c644aedb Patch extension with whitelist 2025-08-30 18:27:21 -07:00
Magnus Müller f50cc45b51 Works to remove cookies 2025-08-30 18:14:59 -07:00
mertunsall 890a535f9e reenable returning dropdown option when clicked on a select element. 2025-08-30 22:04:16 +02:00
mertunsall 09c27fc2cc dont default 2025-08-30 21:08:26 +02:00
Mert Unsal 93d808ad91 Merge branch 'main' into mert/better_browser_exceptions 2025-08-30 20:53:05 +02:00
mertunsall b177f3166e better exception handling from browser events -> LLM 2025-08-30 20:50:42 +02:00
Magnus Müller 89af16361f Add timeouts 2025-08-30 11:04:14 -07:00
Magnus Müller 799fe88aa5 New extension 2025-08-30 11:03:55 -07:00