Skip to content

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

fix(#3292): make table rows and cells with role='row'/'cell' interactive

sudhanshu112233shuklad7990721f851
diff --git a/browser_use/dom/serializer/clickable_elements.py b/browser_use/dom/serializer/clickable_elements.py
index f274985a8..2c0322bbe 100644
--- a/browser_use/dom/serializer/clickable_elements.py
+++ b/browser_use/dom/serializer/clickable_elements.py
@@ -154,6 +154,9 @@ class ClickableElementDetector:
'spinbutton',
'search',
'searchbox',
+ 'row',
+ 'cell',
+ 'gridcell',
}
if node.attributes['role'] in interactive_roles:
return True
@@ -175,6 +178,9 @@ class ClickableElementDetector:
'listbox',
'search',
'searchbox',
+ 'row',
+ 'cell',
+ 'gridcell',
}
if node.ax_node.role in interactive_ax_roles:
return True