Commit Graph

492 Commits

Author SHA1 Message Date
Magnus Müller
9463e4eb1e Fix simple example 2025-08-26 14:23:40 -07:00
Magnus Müller
e89e78842c Rename controller file to tools 2025-08-26 11:06:28 -07:00
Magnus Müller
2a83442f17 Rename Controller to Tools 2025-08-26 11:04:16 -07:00
Nick Sweeting
b5892850ce fix tab close handling 2025-08-21 17:31:02 -07:00
mertunsall
cc12442014 record coordinates for input_text 2025-08-21 21:29:52 +01:00
mertunsall
59fb17cdbe record coordinates of click 2025-08-21 21:01:18 +01:00
Magnus Müller
bef7715fc8 Merge branch 'main' into fast-example 2025-08-21 08:33:54 -07:00
mertunsall
b3681eac51 log the full error first 2025-08-21 16:25:39 +01:00
mertunsall
4955cc00c8 fix long error messages 2025-08-21 13:45:34 +01:00
Magnus Müller
4a4982e89f Query 2025-08-20 22:18:55 -07:00
Nick Sweeting
76512fbfdd fix Failed to build DOM tree: cannot reuse already awaited coroutine 2025-08-16 17:58:45 -07:00
Nick Sweeting
271b12c9df try fixing click_element_by_index auto-returning get_dropdown_options shortcut when clicking on dropdown 2025-08-16 17:41:23 -07:00
Nick Sweeting
99a0e5a3bd rename ClickElementEvent.new_tab to while_holding_ctrl 2025-08-16 16:25:15 -07:00
Nick Sweeting
8d86832095 fix SwitchTab by using TargetID for all tab_ids 2025-08-15 16:45:27 -07:00
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