Blocks & Flow EditorBrowser

get attribute value

The **get attribute value** block returns the value of a specified HTML attribute on an element.

The get attribute value block returns the value of a specified HTML attribute on an element.

Bot Studio get attribute value block configuration

Configuration

FieldDescription
Display NameOptional label shown on the block in the canvas.
SelectorChoose XPath or CSS Selector. XPath navigates HTML/XML structure; CSS Selector locates elements by pattern (Selenium syntax).
Selector ValueThe selector expression — copy and paste from inspector or XPath Picker.
Selector IndexWhen multiple elements match, pick by index. Index starts at 1 (not 0).
TimeoutMaximum wait time in seconds for the element to appear (default 30). Supports decimals (e.g. 0.3).
Add SelectorType or paste an XPath and press Enter to add it to the selector list.
Pick XPathUse the XPath Picker Chrome extension: click an element on the page to capture its XPath, then verify via the dropdown.
Attribute NameName of the HTML attribute to read (e.g. href, value, class).

Outputs

PropertyDescription
msg.payloadThe attribute value

Notes

  • Browser operation blocks require launch browser to be used earlier in the flow.
On this page

On this page