Skip to main content

Get Value

Retrieves the value or attribute from a web element. Use this to extract data from input fields, get element attributes, or read element text.

Common Properties

  • Name - The custom name of the node.
  • Color - The custom color of the node.
  • Delay Before (sec) - Waits in seconds before executing the node.
  • Delay After (sec) - Waits in seconds after executing the node.
  • Continue On Error - Automation will continue regardless of any error. The default value is false.
info

If Continue On Error property is true, no error is caught when the project is executed, even if the Catch node is used.

Input

  • Browser ID - The browser session identifier from the Open Browser node.
  • Selector - The XPath or CSS selector to locate the element.
  • Attribute - The HTML attribute name to retrieve. Default is "value". Leave empty or use "value" for input fields.

Output

  • Value - The value of the specified attribute from the element. If the attribute doesn't exist and "value" was requested, returns the element's text content instead.

Options

  • Selector Type - Type of selector used:

    • XPath - Use XPath expression (default)
    • CSS - Use CSS selector
  • Wait Timeout (sec) - Maximum time to wait for the element to appear. Default is 5 seconds.

Examples

Get Input Field Value

Browser ID: {{browser_id}}
Selector: //input[@name='email']
Attribute: value
Output: {{email_value}}

Get Element Text

Browser ID: {{browser_id}}
Selector: //div[@class='price']
Attribute: value
Output: {{price_text}}

Get Custom Attribute

Browser ID: {{browser_id}}
Selector: //a[@id='download-link']
Attribute: href
Output: {{download_url}}

Get Data Attribute

Browser ID: {{browser_id}}
Selector: //div[@class='product']
Attribute: data-product-id
Output: {{product_id}}

Get Class Attribute

Browser ID: {{browser_id}}
Selector: //button[@id='submit']
Attribute: class
Output: {{button_classes}}

Get Multiple Values in Loop

For each row in table:
Browser ID: {{browser_id}}
Selector: //tr[{{row_index}}]/td[1]
Attribute: value
Output: {{cell_value}}

Common Attributes

  • value - Input field value (default)
  • href - Link URL
  • src - Image or script source
  • id - Element ID
  • class - CSS classes
  • title - Title attribute
  • alt - Alternative text
  • data-* - Custom data attributes
  • aria-* - Accessibility attributes

Tips

  • Use "value" for input fields, textareas, and select elements
  • For element text content, use "value" and the node will fallback to text if no value attribute exists
  • Custom data attributes are accessed as "data-attribute-name"
  • Store output in variables for use in later nodes
  • Use in loops to extract data from multiple elements

Common Errors

  • "Browser ID cannot be empty" - Connect to an Open Browser node
  • "Selector cannot be empty" - Provide an XPath or CSS selector
  • "Element not found within X seconds" - The element doesn't exist or takes longer to load
  • "Timeout cannot be empty" - Provide a timeout value