<< Click to Display Table of Contents >> Navigation: Actions > Web Automation > Get Element Property |
The Get Element Property action extracts information from web page elements. It can read text, values, attributes, and various element states.
When to use this action:
Extracting prices, product names, or other data from e-commerce sites
Reading form values to verify user input
Checking if buttons are enabled before clicking
Counting search results or list items
Verifying element exists before interacting with it
Getting URLs from links for further processing
Monitoring element states (visible, checked, selected)
Browser
Select which browser to get the property from
Locate element by
Locate by: Choose how to find the element
Select Element: Click to interactively choose an element
Get from all found elements
When unchecked (default): Returns property from the first matching element
When checked: Returns an array of properties from all matching elements
Useful for extracting data from lists or tables
Property Type Select what information to extract:
Text Properties:
•Text - All visible text in the element (including children)
•Own Text - Only the element's direct text (excluding children)
•HTML - The element's HTML source code
Form Field Properties:
•Value - Current value of input fields, textareas
•Is Checked - True/false for checkboxes and radio buttons
•Selected Option - Text of selected option in dropdowns
•Selected Value - Value attribute of selected option
Link and Media Properties:
•Link (href) - URL from links (a tags)
•Image Source (src) - URL from images (img tags)
Element State Properties:
•Exists - True if element exists, false otherwise
•Count - Number of elements matching the selector
•Is Visible - True if element is visible on page
•Is Enabled - True if element is enabled (not disabled)
Custom Properties:
•Attribute... - Any HTML attribute (requires Attribute Name)
Common attributes: id, class, name, title, data-*, etc.
Attribute Name
Only enabled when Property Type is "Attribute..."
Enter the exact name of the HTML attribute to read
Save to Variable
Variable name to store the extracted value
Required for the action to be useful
Return Values
The action returns different value types depending on the property:
Text values: String
Boolean values: "True" or "False"
Count: Number as string
If you choose "All elements": JSON array of values
Related Topics