shadow-root [TAST DokuWiki ]

User Tools

Site Tools


Sidebar

First steps in TAST

What is UML

Computer setup for TAST use

FAQ

Recognized Issues

TAST tool Menu

TAST Adaptors

Adaptors examples

TAST Integrations

Interesting features

Documentation of technical administration

Modeling recommendations

Training in the TAST tool

shadow-root

Shadow Root


Solution for “Shadow-root” elements, for example some “accept cookies” pages:

To treat these elements we need to use the executeJavascript function, for example:

Document.getElementById(“usercentrics-root”).shadowRoot.querySelector(“[data-testid=uc-accept-all-button]”).click();

The steps to follow are the following:

  1. Find the element that includes shadow-root (document.getElementById(“usercentrics-root”))
  2. Navigate to shadow-root (.shadowRoot)
  3. Navigate to the element with querySelector (.querySelector(“[data-testid=uc-accept-all-button]”))
  4. Interact with the element (.click())
shadow-root.txt · Last modified: 2023/12/18 14:45 (external edit)