feat: span, em, cite, B, strong selectors

This commit is contained in:
karishmas6
2024-06-06 05:44:41 +05:30
parent 4c8312fe76
commit 8da75c5419

View File

@@ -43,5 +43,24 @@ export const getBestSelectorForAction = (action: Action) => {
);
}
if (
action.tagName === TagName.Span ||
action.tagName === TagName.EM ||
action.tagName === TagName.Cite ||
action.tagName === TagName.B ||
action.tagName === TagName.Strong
) {
return (
selectors.testIdSelector ??
selectors?.id ??
selectors?.accessibilitySelector ??
selectors?.hrefSelector ??
textSelector ??
selectors?.generalSelector ??
selectors?.attrSelector ??
null
);
}
}