feat: handle if element has only text content

This commit is contained in:
amhsirak
2024-11-23 06:48:17 +05:30
parent 7d1e7f1868
commit 1e0890800f

View File

@@ -17,7 +17,7 @@ export const getBestSelectorForAction = (action: Action) => {
selectors?.text?.length != null && selectors?.text?.length != null &&
selectors?.text?.length < 25 && selectors?.text?.length < 25 &&
action.hasOnlyText action.hasOnlyText
? `text=${selectors.text}` ? selectors.generalSelector
: null; : null;
if (action.tagName === TagName.Input) { if (action.tagName === TagName.Input) {