Overview
The Get Text node (Element Query node) extracts information from web page elements including text content, attributes, element counts, visibility states, and bounding boxes. Results are stored in the workflow context for use in subsequent nodes.Actions
getText
Extract text content from an element.Context variable name to store the extracted text.
getAttribute
Extract an attribute value from an element.Name of the attribute to extract (e.g.,
href, src, class, data-id).Supports variable interpolation: ${data.attrName}Context variable name to store the attribute value.
getCount
Count the number of elements matching the selector.Context variable name to store the count.
isVisible
Check if an element is visible on the page.Context variable name to store the boolean result.
isEnabled
Check if an element is enabled (not disabled).Context variable name to store the boolean result.
isChecked
Check if a checkbox or radio button is checked.Context variable name to store the boolean result.
getBoundingBox
Get the element’s position and size.Context variable name to store the bounding box object
{x, y, width, height}.getAllText
Extract text content from all elements matching the selector.Context variable name to store the array of text strings.
Configuration
Element selector to query. Supports variable interpolation:
${data.elementSelector}Action to perform:
getText, getAttribute, getCount, isVisible, isEnabled, isChecked, getBoundingBox, or getAllTextType of selector:
css, xpath, text, getByRole, getByText, getByLabel, etc.Advanced selector modifiers.Properties:
nth: Select nth element (0-based)filterText: Filter by text contentfilterSelector: Filter by child selectorchainSelector: Scoped sub-query
Maximum time in milliseconds to wait for the element.
If
true, errors don’t stop workflow execution.Advanced Features
Waiting
Wait for another element before/after extraction.
Wait for URL to match pattern.
Wait for JavaScript condition to be true.
Execute waits after extraction instead of before.
Retry Logic
Enable automatic retry on failure.
Number of retry attempts.
Delay between retries in milliseconds.
Examples
Extract Text
Extract Attributes
Check Element State
Count Elements
Get Bounding Box
Element Position
Advanced Selectors
With Wait and Retry
Resilient Extraction
Accessing Extracted Data
Extracted data is stored in the workflow context and can be accessed in subsequent nodes:Output Data Types
| Action | Output Type | Example |
|---|---|---|
getText | string | "Product Title" |
getAttribute | string | null | "https://example.com" |
getCount | number | 42 |
isVisible | boolean | true |
isEnabled | boolean | false |
isChecked | boolean | true |
getBoundingBox | object | {x: 100, y: 200, width: 300, height: 150} |
getAllText | string[] | ["Item 1", "Item 2", "Item 3"] |
Notes
The
getText action returns the text content, not the HTML. Use getAttribute with innerHTML or outerHTML to get HTML content.The
getAllText action is useful for extracting data from lists, tables, or multiple similar elements on a page.Common Patterns
Extract and Validate
Conditional Logic
Related Nodes
- Extract - Extract structured data from multiple elements
- Verify Text - Verify extracted text
- JavaScript Code - Process extracted data
- Type - Use extracted data in inputs
