Skip to content

Selector To String Node

Automation/Selector

Converts a selector to its string representation

selector_to_stringautomation
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 convert

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

▶

Execution
exec_out

Continue

Kind

String
kind

Selector kind

Value

String
value

Selector value

Confidence

Float
confidence

Selector confidence

Node Info

Internal name
selector_to_string
Category
Automation/Selector