Skip to content

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

Remove ax_name

Magnus Müllerfad718b36446
diff --git a/browser_use/dom/serializer/serializer.py b/browser_use/dom/serializer/serializer.py
index 7fefdc5d9..26ef9b62a 100644
--- a/browser_use/dom/serializer/serializer.py
+++ b/browser_use/dom/serializer/serializer.py
@@ -519,12 +519,6 @@ class DOMTreeSerializer:
except (AttributeError, ValueError):
continue
- # Include accessibility name (contains StaticText content)
- if node.ax_node and node.ax_node.name and 'ax_name' in include_attributes:
- ax_name_str = str(node.ax_node.name).strip()
- if ax_name_str:
- attributes_to_include['ax_name'] = ax_name_str
-
if not attributes_to_include:
return ''