Commit Graph

478 Commits

Author SHA1 Message Date
Nick Sweeting
efdbad7cfb better llm hints for dropdowns 2025-08-14 18:36:55 -07:00
Nick Sweeting
5bc9cbe141 when click_element_by_index fails, auto-call get_dropdown_options and return result directly 2025-08-14 18:16:12 -07:00
Nick Sweeting
287a66822c tweak get_dropdown_options wording to avoid LLM over-use 2025-08-14 17:39:41 -07:00
Nick Sweeting
d509759c57 more get_dropdown_options fixes 2025-08-14 17:11:18 -07:00
Nick Sweeting
8b134dd25a port over merts new llm_error_msg tags 2025-08-14 16:46:54 -07:00
Nick Sweeting
5cc7d0f301 move dropdown options to proper event handlers 2025-08-14 16:44:29 -07:00
Mert Unsal
0c8d863d6c Merge branch 'main' into mert/fix_error_messages 2025-08-14 22:54:13 +01:00
Nick Sweeting
a1f1330aa6 linter fixes 2025-08-14 14:32:32 -07:00
mertunsall
aa7095df86 fix wrong url in extract content 2025-08-14 21:38:49 +01:00
Mert Unsal
f5284c996f Merge branch 'main' into mert/fix_error_messages 2025-08-14 20:46:59 +01:00
mertunsall
3ac58d9457 LLM should get clean messages without emojis and weird error logs 2025-08-14 20:46:26 +01:00
Nick Sweeting
25bbcb597c Merge branch 'main' into cross-origin-iframes 2025-08-14 12:30:38 -07:00
Gregor Žunič
fb4700a38e revert prompt changes 2025-08-14 09:39:15 -07:00
Nick Sweeting
22ae5afd73 rename ScrollAction.index to frame_element_index because llm was misusing it often 2025-08-14 05:05:30 -07:00
Nick Sweeting
524017c8b9 more clear_existing fixes for input_text 2025-08-14 05:04:38 -07:00
Magnus Müller
9346c7a923 Revert "Record exceptions and rename span context" 2025-08-13 09:47:29 -07:00
Cursor Agent
72f3b1f7f0 Update Laminar span handling to record exceptions and improve variable naming
Co-authored-by: mamagnus00 <mamagnus00@gmail.com>
2025-08-13 13:33:06 +00:00
Magnus Müller
7ff0052e67 update extract_structured_data prompt 2025-08-12 21:54:49 -07:00
Magnus Müller
bcb9a119c6 Merge branch 'local-remote-split' of https://github.com/browser-use/browser-use into local-remote-split 2025-08-12 15:54:41 -07:00
Magnus Müller
1730cf6fd7 Describe the click action better 2025-08-12 15:54:39 -07:00
Nick Sweeting
8937b4f094 prevent agent from clicking elements with index 0 2025-08-12 15:34:44 -07:00
Magnus Müller
fe43837649 Enhance error messages in dropdown and menu selection logic to include available options for better debugging. This change improves clarity when options are not found by providing a structured list of available choices. 2025-08-12 15:03:46 -07:00
Magnus Müller
14a5aaa3ff Tool msg dropdowns 2025-08-12 15:00:00 -07:00
Magnus Müller
d753ca003a Enhance selection logic for dropdowns and menus to support case-insensitive matching for both text and values. Update error messages for better clarity when options are not found. Trim whitespace from option texts to ensure accurate comparisons. 2025-08-12 14:52:29 -07:00
Nick Sweeting
c37b72adb1 fix screenshot return type and add recovery using activateTarget when any handler fails 2025-08-12 12:11:33 -07:00
Nick Sweeting
d1c9ddd9fe fix search_google nav 2025-08-12 05:26:42 -07:00
Nick Sweeting
c440e29ea1 fix cached selector map and js popups 2025-08-12 05:00:31 -07:00
Nick Sweeting
7a0889cf20 formatting 2025-08-12 04:14:53 -07:00
Nick Sweeting
d1e569eb31 raise BrowserError exceptions instead of returning success=False 2025-08-12 04:14:53 -07:00
Magnus Müller
310eaf1e51 Update tool description 2025-08-11 17:03:26 -07:00
Magnus Müller
008f65ec3e tool description extract_structured_data for clever usage with dynamic content 2025-08-11 16:49:10 -07:00
Magnus Müller
2f3007b0ea Update description 2025-08-11 16:33:42 -07:00
Magnus Müller
e1601971a9 Update js code for selct dropdown 2025-08-11 16:31:31 -07:00
Magnus Müller
e6b0900720 Dropdowns for nested elements 2025-08-11 16:17:07 -07:00
Magnus Müller
f461a00f67 Dropdown v1 2025-08-11 15:47:01 -07:00
Nick Sweeting
cb5fb38036 cli fixes and types for input 2025-08-11 13:50:59 -07:00
Nick Sweeting
9ab14b4cf0 re-enable upload_file event and action 2025-08-11 13:50:59 -07:00
Magnus Müller
9dbf127e3b Enhance extract_structured_data: clarify usage instructions and improve markdown processing by removing images and converting links to text. 2025-08-11 10:52:59 -07:00
Magnus Müller
4212e73d7d Tool description 2025-08-11 10:08:55 -07:00
Magnus Müller
db8601d88a Dont remove styles 2025-08-11 09:07:09 -07:00
Magnus Müller
a212727249 Only remove empty links 2025-08-11 08:56:04 -07:00
Magnus Müller
ba81729fb3 Replace empty links 2025-08-10 22:25:44 -07:00
Magnus Müller
39ff164008 Fix extract content 2025-08-10 22:24:08 -07:00
Magnus Müller
2d63ccf65a extract_structured_data descripiton for single use 2025-08-10 20:58:54 -07:00
Magnus Müller
aa45460617 Fixed multiact cache 2025-08-10 18:25:22 -07:00
Magnus Müller
eb003f7a2f Wait for page in extract_structured_data 2025-08-10 10:33:41 -07:00
Magnus Müller
af8acb0659 Remove url blank from extract_structured_data 2025-08-10 10:25:26 -07:00
Magnus Müller
38d68361d1 Refactor content extraction process in Controller class. Simplified HTML to markdown conversion using markdownify, improved error handling, and streamlined memory management for extracted content. Removed obsolete methods related to HTML cleaning and content validation. 2025-08-09 18:53:15 -07:00
Magnus Müller
c6e71121c1 Auto enter 2025-08-09 18:47:05 -07:00
Magnus Müller
70115c44c0 Refactor HTML extraction and content processing in Controller class. Introduced methods for cleaning HTML, validating content relevance, and intelligently truncating long content. Enhanced markdown conversion and improved error handling for content extraction failures. 2025-08-09 18:35:37 -07:00