diff --git a/server/src/workflow-management/utils.ts b/server/src/workflow-management/utils.ts index 3f5cef9b..42e8887f 100644 --- a/server/src/workflow-management/utils.ts +++ b/server/src/workflow-management/utils.ts @@ -20,5 +20,17 @@ export const getBestSelectorForAction = (action: Action) => { ? `text=${selectors.text}` : null; - } + if (action.tagName === TagName.Input) { + return ( + selectors.testIdSelector ?? + selectors?.id ?? + selectors?.formSelector ?? + selectors?.accessibilitySelector ?? + selectors?.generalSelector ?? + selectors?.attrSelector ?? + null + ); + } + + }