Skip to content

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

updated labels

Gregor Žunič513ef8c077f3
diff --git a/browser_use/agent/service.py b/browser_use/agent/service.py
index cfb22b3fd..3533c838b 100644
--- a/browser_use/agent/service.py
+++ b/browser_use/agent/service.py
@@ -36,7 +36,6 @@ from browser_use.dom.history_tree_processor.service import (
DOMHistoryElement,
HistoryTreeProcessor,
)
-from browser_use.dom.views import DOMElementNode
from browser_use.telemetry.service import ProductTelemetry
from browser_use.telemetry.views import (
AgentEndTelemetryEvent,
@@ -66,7 +65,7 @@ class Agent:
system_prompt_class: Type[SystemPrompt] = SystemPrompt,
max_input_tokens: int = 128000,
validate_output: bool = False,
- include_attributes: list[str] = ['title', 'type', 'name'],
+ include_attributes: list[str] = ['title', 'type', 'name', 'role', 'tabindex'],
max_error_length: int = 400,
max_actions_per_step: int = 10,
):