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}}