Verify user can select a nested element using chained selectors
Preconditions (3)
Step 1: Open the sample page URL
Step 2: Find the <div> element with class 'container'
Step 3: Within that container, find the <ul> element
Step 4: Within the <ul>, find the first <li> element with class 'item'
Step 5: Click on that <li> element
Step 6: Verify that the clicked <li> element has the class 'selected'
✅ Expected Result: The first <li> item inside the container's <ul> is clicked and has the class 'selected' applied