Practice · DOM Structure
Add/Remove Elements
Why this is tricky
Every "Delete" button below is identical — same text, no id, no class, no data attribute. Click "Add Element" a few times, then try to delete just the second one. You'll need a positional selector (nth-of-type) or to work from the click event's own target — text or attribute locators can't tell these apart.
0 elements currently on page.
Initial state.