Skip to content

Commit 3918d22

Browse files
committed
fix: Account for clickable attribute in tag filter validation
1 parent d4b081e commit 3918d22

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/locators/element-filter.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ export function shouldIncludeElement(
163163
} = filters;
164164

165165
if (!matchesTagFilters(element, includeTagNames, excludeTagNames)) {
166-
return false;
166+
if (element.attributes?.clickable !== 'true') {
167+
return false;
168+
}
167169
}
168170

169171
if (!matchesAttributeFilters(element, requireAttributes, minAttributeCount)) {

0 commit comments

Comments
 (0)