Access and verify text inside a Shadow DOM element
Preconditions (3)
Step 1: Locate the Shadow DOM host element by id 'shadow-host'
Step 2: Access the Shadow Root of the host element
Step 3: Find the span element with class 'shadow-text' inside the Shadow Root
Step 4: Verify that the text of the span element is exactly 'Hello Shadow DOM'
✅ Expected Result: The span element inside the Shadow DOM contains the text 'Hello Shadow DOM'