Skip to content

Element

DOM element query, attribute, and text extraction.

3 modules

ModuleDescription
Get AttributeGet element
Query ElementFind child elements within element
Get TextGet element

Modules

Get Attribute

element.attribute

Get element

Parameters:

NameTypeRequiredDefaultDescription
element_idstringYes-Element ID (UUID)
namestringYes-Element ID (UUID)

Output:

FieldTypeDescription
statusstringAttribute name (e.g. href, src, class)
valuestringOperation status (success/error)

Example: Get href attribute

yaml
element_id: ${link_element}
name: href

Query Element

element.query

Find child elements within element

Parameters:

NameTypeRequiredDefaultDescription
element_idstringYes-Parent element ID (UUID)
selectorstringYes-Parent element ID (UUID)
allbooleanNoFalseCSS selector to find child elements

Output:

FieldTypeDescription
statusstringWhether to find all matching elements (default: false, find first only)
element_idstringOperation status (success/error)
element_idsarrayOperation status (success/error)
countnumberFound element ID (single mode)

Example: Find child element

yaml
element_id: ${result_item}
selector: h3

Get Text

element.text

Get element

Parameters:

NameTypeRequiredDefaultDescription
element_idstringYes-Element ID (UUID)

Output:

FieldTypeDescription
statusstringElement ID (UUID)
textstringElement ID (UUID)

Example: Get element text

yaml
element_id: ${title_element}

Released under the Apache 2.0 License.