'how to use parent or sibling in css selenium when there is only class i.e only one attribute available and both child elements have same class name

here is the console

click on this

i have got answer using xpath but want to learn in css.

i have written xpath solution for it but kindly help with css.

xpath solution(click)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source