Skip to content

Validate Selector Node

Automation/Selector

Validates a selector's format and structure

selector_validateautomation
Inputs2
Outputs4
Security exposureUnrated
Packageautomation

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

No score metadata has been set for this node yet.

Input Pins

2

▶

Execution
exec_in

Trigger

Selector

Struct
selector

Selector to validate

SelectorSelector4 fields
kindSelectorKindrequired
variant 1enumvariant
enum "Css", "Xpath", "TextExact", "TestId"...
variant 2constvariant

Visible text contained in the element; script, style and head content is ignored.

const "Text"
variant 3constvariant

ARIA role, optionally filtered by accessible name: `button`, `button|Sign in` (case-insensitive substring), `button|=Sign in` (exact) or `button|/^sign/i` (regex).

const "Role"
variant 4constvariant

Element ref from the latest Browser Snapshot, such as `e12`.

const "Ref"
valuestringrequired
confidencenumber | null
format double
scopestring | null

Output Pins

4

Valid

Execution
exec_valid

Selector is valid

Invalid

Execution
exec_invalid

Selector is invalid

Is Valid

Boolean
is_valid

Whether selector is valid

Error

String
error

Validation error message

Node Info

Internal name
selector_validate
Category
Automation/Selector