Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Separate python highlighting and DOM highlighting by creating a debug_highlight_element

kalil0321ec8ad39ee2fc
diff --git a/browser_use/browser/profile.py b/browser_use/browser/profile.py
index beeef1448..63a9ea7cd 100644
--- a/browser_use/browser/profile.py
+++ b/browser_use/browser/profile.py
@@ -621,7 +621,8 @@ class BrowserProfile(BrowserConnectArgs, BrowserLaunchPersistentContextArgs, Bro
# --- UI/viewport/DOM ---
- highlight_elements: bool = Field(default=False, description='Highlight interactive elements on the page.')
+ highlight_elements: bool = Field(default=True, description='Highlight interactive elements on the page.')
+ debug_highlight_elements: bool = Field(default=False, description='Debug highlight elements on the page (only for debugging).')
filter_highlight_ids: bool = Field(
default=True, description='Only show element IDs in highlights if llm_representation is less than 10 characters.'
)