Skip to content

Get Primary Selector Node

Automation/Selector

Gets the primary (first) selector from a selector set

selector_get_primaryautomation
Inputs2
Outputs3
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 Set

Struct
selector_set

Selector set to get primary from

SelectorSetSelectorSet2 fields
selectorsArray<Selector>required
itemsSelectorarray item
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
fallback_orderArray<integer:uint>required
itemsinteger:uintarray item
format uintmin 0

Output Pins

3

Found

Execution
exec_found

Primary selector exists

Empty

Execution
exec_empty

Selector set is empty

Selector

Struct
selector

Primary selector

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

Node Info

Internal name
selector_get_primary
Category
Automation/Selector