Commit Graph

4189 Commits

Author SHA1 Message Date
Nick Sweeting a742d81122 fix tab title check breaking discovery of active tab at startup 2025-03-22 19:44:13 -07:00
மனோஜ்குமார் பழனிச்சாமி f2a38ce326 Simplify browser setup 2025-03-23 07:48:29 +05:30
Magnus Müller 134f0f2735 Merge pull request #1095 from ml5ah/feature/save-page-pdf
Feature to save webpage as PDF to given path
2025-03-22 19:10:48 -07:00
Magnus Müller c1b3925f02 Merge pull request #1015 from NvRom/user/weixche/interacted_element
fix: empty interacted element in history when interacted index is 0
2025-03-22 18:54:18 -07:00
Magnus Müller 8239b68e53 Merge pull request #1043 from prompted365/fix-dom-detection
Fixed missing text input detection in DOM parsing
2025-03-22 18:53:44 -07:00
Magnus Müller 3e871c6359 Merge pull request #895 from adamdelezuch89/main
fix: close httpx connections to avoid memory leaks
2025-03-22 18:51:33 -07:00
Magnus Müller da8b362206 Merge branch 'main' into main 2025-03-22 18:48:25 -07:00
Nick Sweeting 884be76d37 special processing for child iframes 2025-03-22 14:38:44 -07:00
Nick Sweeting 36cfda581a invalidate page state when child iframes navigate 2025-03-22 14:38:24 -07:00
Nick Sweeting 2232da65ac record when JS has run in a given target 2025-03-22 14:38:03 -07:00
Anish Hiranandani 45e23bb838 removed SavePDFAction and set print bg to False 2025-03-22 14:05:11 -07:00
Anish Hiranandani 32f54739d5 Update browser_use/controller/service.py
Improvements to use simple file naming instead of LLM generated

Co-authored-by: Nick Sweeting <github@sweeting.me>
2025-03-22 14:02:06 -07:00
Anish Hiranandani 561aef038f Update browser_use/controller/service.py
No need for SavePDFAction

Co-authored-by: Nick Sweeting <github@sweeting.me>
2025-03-22 14:01:27 -07:00
Anish Hiranandani e837081ffb changes to set media type to screen and format to A4 2025-03-22 11:42:55 -07:00
Carlos A. Planchón 9dc479441d Merge branch 'browser-use:main' into direct_html_manipulation 2025-03-22 14:22:34 -03:00
Magnus Müller 9cc6e1f61c Merge branch 'main' into main 2025-03-21 19:01:33 -07:00
Magnus Müller 15817eec0c Merge pull request #1081 from KazuhitoT/cast-element-id-to-str
fix: cast element id to string in buildDomTree.js
2025-03-21 18:14:44 -07:00
Anshdeep Singh c05980ac79 Improve: Add dynamic font sizing for large task displays in GIFs
- Task text rendering by implementing automatic font size adjustment
based on text length in the GIF creator.

- Longer tasks now use progressively
smaller fonts to ensure proper display while maintaining readability.

- Font size is calculated logarithmically with a minimum size threshold.
2025-03-21 01:07:22 -07:00
Anish Hiranandani 552d4ff81c added 2 params to action 2025-03-21 00:32:32 -07:00
Anish Hiranandani 8ccde19103 added feature to save webpage as PDF to given path 2025-03-21 00:02:34 -07:00
KazuhitoT f21f71d1c8 fix: cast element id to string in buildDomTree.js 2025-03-20 16:48:07 +09:00
மனோஜ்குமார் பழனிச்சாமி eab0af3d7f Merge branch 'main' into dropdown 2025-03-20 13:15:36 +05:30
lanudry2 d9c3b7a846 fix(headless): support headless for real chrome
Change-Id: I73935a25a813cae117e6ec15524e45d2f25e7ef0
2025-03-19 15:01:30 +08:00
Kalhar Pandya 6711af252f fix: unessary space removed 2025-03-18 08:55:41 -07:00
Kalhar Pandya 0ea4de2190 fix: undeo unnecessary change 2025-03-18 08:54:23 -07:00
hao-cyber 2f9e264948 feat: Add browser context options for mobile simulation, geolocation, permissions and timezone settings 2025-03-18 22:42:10 +08:00
vonjackustc 1b7fa09ccf Support QwQ-32b 2025-03-18 15:06:47 +08:00
ProphetDiceBot 877384ef94 Create dolphin_service.py 2025-03-17 17:03:01 -04:00
dipfocus a308f7b0af Fix: Add sameSite cookie validation and auto-correction 2025-03-17 17:20:20 +08:00
Kalhar Pandya 2570b33108 Fixed missing text input detection in DOM parsing 2025-03-16 20:07:38 -07:00
Weixing Chen (from Dev Box) b8215de46b fix comment 2025-03-17 10:21:29 +08:00
Weixing Chen (from Dev Box) af56e0262e fix empty interacted element 2025-03-17 10:21:29 +08:00
Mike Wang 8786c1d56c fix: convert xpath with colons in element names 2025-03-16 22:22:55 +08:00
Rahul Sharma cdae535f13 Update isInteractiveElement handling:
- Remove unused window.getComputedStyle call.
- Add a much faster check for interactive element using cursor pointer which cut short the function for 90% of the cases.
2025-03-15 12:51:25 +05:30
Carlos Andrés Planchón Prestes f8c81376ce Updating to match upstream. 2025-03-14 22:13:15 -03:00
Carlos Andrés Planchón Prestes 6b76eb6ffe Adding before_step_func. 2025-03-14 21:25:52 -03:00
mkuts12 29678f60d5 allow LLM to decide whether it's needed to strip the URLs 2025-03-11 16:39:44 +02:00
alex 5dbc55bd46 Bugfix: in case of empty dirname, error raised when trying to create dirs 2025-03-11 10:25:27 +01:00
alex dfd5b124f2 Bigfix: in case if node element has a shadow dom, all other children nodes are not processed 2025-03-11 09:51:26 +01:00
Magnus Müller 262bb2693c Merge pull request #937 from guybensimhon1/main
Update isContentEditable handling to check readonly and disabled attr…
2025-03-10 23:13:25 -07:00
Magnus Müller 80cb885a40 Merge pull request #959 from guybensimhon1/output-model-support-enum
Separated internal output model from suplied model, and fixed a parsi…
2025-03-10 23:10:45 -07:00
codenoid d68d1f5019 Clean up unused import and remove trailing whitespace
- Removed unused 're' import from message_manager/utils.py
- Removed trailing whitespace in agent/service.py
2025-03-11 12:24:27 +07:00
codenoid 65f82588aa Fix DeepSeek model name matching in message conversion
- Updated string comparison for DeepSeek model names to use 'in' operator
- Corrected string literal comparison for more flexible model name detection
2025-03-11 12:12:40 +07:00
codenoid 10f0189049 Improve DeepSeek model handling and think tag removal
- Enhanced model name matching for DeepSeek models using 'in' operator
- Improved think tag removal to handle stray closing tags
- Updated message conversion and plan processing for DeepSeek models
2025-03-11 12:10:11 +07:00
mkuts12 b2fb7c42e7 Adding the strip to markdownify will keep the text but not add the url to the data.
This transformed a text of 367277 characters to 48969.
Quick fix to a more deep problem
2025-03-09 18:55:33 +02:00
takuto yuki d4b54c8e29 Update Add tokens logger 2025-03-08 20:15:02 +09:00
jlogtenberg 0289f6be87 HAR file recording
Added a variable to save the path where the HAR file should be saved to class BrowserContextConfig, and added the recording of the HAR file in the initialization of the context function.
2025-03-07 13:09:03 +01:00
guybensimhon1 dc24574e7c Separated internal output model from suplied model, and fixed a parsing bug of Enum fields 2025-03-06 19:41:20 +02:00
Zhen3r c0754f26c6 Fix special case for viewport expansion in visibility check 2025-03-06 15:27:30 +08:00
Edison S d5534fb275 not allow CDP for firefox 2025-03-05 13:39:08 -05:00