Shadow DOM
Find Elements inside Shadow DOM by prefixing a CSS Selector with >>>.
Some controls live inside a Shadow DOM: a nested DOM tree that the page keeps separate from the main document. Ordinary CSS Selectors stay outside that tree, so DoesQA cannot find the control until the Selector is told to look inside.
Use this when you can see the control in the browser, but a Manual CSS Selector for the same tag or class finds nothing during a Run.
Prefix the CSS Selector with >>>
For a Manual Element with Type set to CSS, put >>> at the start of the Selector. That tells DoesQA to pierce into Shadow DOM, then match the rest of the CSS as usual.
h1.main-title
>>>h1.main-title
button.submit
>>>button.submit
input[name="email"]
>>>input[name="email"]
Keep the part after >>> as tight as any other durable CSS Selector: prefer a stable class, attribute, or structure, not a large layout wrapper. See Choose durable selectors.
Set it on a Manual Element
Related
Last updated