Commit Graph

1085 Commits

Author SHA1 Message Date
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
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
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
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
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
Magnus Müller
aad4b932bf time_execution_async import 2025-08-29 22:32:05 -07:00
Magnus Müller
25823ce670 make highlights sync 2025-08-29 22:25:32 -07:00
Magnus Müller
ce0876adb7 highlight in parallel 2025-08-29 22:17:50 -07:00
Magnus Müller
e570acfefc Enhance DOM service initialization in DOMWatchdog
- Updated the instantiation of `DomService` to include `cross_origin_iframes` parameter from the browser session profile, improving its configuration for handling cross-origin iframes.
2025-08-29 21:54:16 -07:00
Magnus Müller
d8b23062b9 Formatter 2025-08-29 21:46:45 -07:00
Magnus Müller
4a62fe11f9 More logging 2025-08-29 21:42:14 -07:00
Magnus Müller
7b0e216ff0 Update font size and padding adjustments in bounding box drawing for enhanced visibility
- Increased font size in `draw_enhanced_bounding_box_with_text` from 30 to 36 for improved readability.
- Adjusted padding from 8 to 6 to accommodate the larger font while maintaining visual clarity.
- Enhanced text positioning logic to prevent clipping and ensure proper alignment within the bounding box.
2025-08-29 21:36:25 -07:00
Magnus Müller
a31ae9dffb Refactor bounding box drawing and enhance LLM text representation
- Removed the `_raise_if_stopped_or_paused` method from the `Agent` class to streamline functionality.
- Updated `draw_enhanced_bounding_box_with_text` to improve font size and padding for better visibility of index boxes.
- Introduced `get_meaningful_text_for_llm` method in `EnhancedDOMTreeNode` to provide more relevant text for LLM processing.
- Enhanced `llm_representation` method with observability features for better debugging.
2025-08-29 21:30:11 -07:00
Magnus Müller
e8bd85865d Add filter for highlight IDs in screenshot generation and update element colors
- Introduced `filter_highlight_ids` option in `BrowserProfile`, `BrowserSession`, and `create_highlighted_screenshot` to control the visibility of element IDs based on text length.
- Updated `draw_enhanced_bounding_box_with_text` to utilize the new filtering logic for enhanced visual clarity.
- Changed the color of text areas from yellow to orange for improved visibility in the UI.
2025-08-29 20:56:03 -07:00
Magnus Müller
66822d6090 Update font size and padding in bounding box drawing functions for improved visibility
- Increased font size in `draw_enhanced_bounding_box_with_text` from 35 to 40 for better readability.
- Adjusted padding in `draw_bounding_box_with_text` from 3 to 5 to enhance spacing around text elements.
2025-08-29 20:45:54 -07:00
Magnus Müller
8511c2d398 Remove display highlights on screen feature and adjust bounding box drawing parameters
- Eliminated the `display_highlights_on_screen` option from `BrowserProfile` and `BrowserSession` to streamline the highlighting functionality.
- Updated the `draw_enhanced_bounding_box_with_text` function to increase font size for better visibility and reduced padding for a more compact layout.
- Removed associated screenshot overlay logic in `DOMWatchdog` to reflect the removal of the display highlights feature.
2025-08-29 20:38:57 -07:00