Medium locator: css action: click

Duplicate Classes

Five buttons share one class and no unique attribute — practice `nth-of-type` and structural CSS.

Five buttons share the exact same class (.ticket-btn) and have no unique attribute. Select Ticket #3 — practice nth-of-type or a text filter instead of guessing at an index.

Selected: none

Framework notes

  • playwright — Use `.nth(n)` or a text-filtered `.filter({ hasText })` instead of a brittle index-only selector.