Blocks & Flow EditorBrowser

get text

The **get text** block extracts visible text from an element on the current tab.

The get text block extracts visible text from an element on the current tab.

Bot Studio get text 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).
Action TypeWeb Element — interact with visible HTML. Javascript — access hidden or shadow-DOM elements.
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.

Outputs

PropertyDescription
msg.payloadExtracted text content

Notes

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

On this page