feat: tagname A selectors
This commit is contained in:
@@ -31,6 +31,17 @@ export const getBestSelectorForAction = (action: Action) => {
|
|||||||
null
|
null
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (action.tagName === TagName.A) {
|
||||||
|
return (
|
||||||
|
selectors.testIdSelector ??
|
||||||
|
selectors?.id ??
|
||||||
|
selectors?.hrefSelector ??
|
||||||
|
selectors?.accessibilitySelector ??
|
||||||
|
selectors?.generalSelector ??
|
||||||
|
selectors?.attrSelector ??
|
||||||
|
null
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user