Web Automation Practice

Shadow DOM

Instructions: Your automation script needs to access elements encapsulated within a Shadow DOM.

  1. Locate the "Shadow Host" element on the page.
  2. Access its Shadow Root.
  3. Find the paragraph inside the Shadow DOM and get its text.

Validation: Your script should successfully read the text: "I am inside a Shadow DOM!".