Suppose I have a CSS path like this:
.event__participant.event__participant--away
Is there a way to specifically target the first, second, or any X element that matches this path without fetching all 100+ elements? Using selenium for automation and struggling with solutions as :nth-type-of
isn't effective and nth-child
doesn't apply here due to additional children within the structure beyond just .event__participant--away
.