Browser: Find element in shadow DOM

Find an element inside a shadow DOM and optionally read an attribute.

Help Centre › Building Processes

Find an element inside a shadow DOM and optionally read an attribute.

Add it to a process

In the process designer, open the Add step tab. Find Find element in shadow DOM under Browser › Advanced, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
ByNoThe method used to locate the element (e.g. CSS selector, XPath, ID, text) Default: XPath.
Shadow host elementYesSelector for the shadow host element
CSS selectorYesCSS selector inside the shadow root (shadow DOM does not support XPath)
AttributeYesElement attribute name
VariableYesVariable name to store the result Default: shadow_element.
AttributeNoAttribute to read (e.g. textContent, value, innerHTML). If omitted, stores the element reference.

See all Browser steps.

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.