Having trouble defining a selector in TestCafe to click the YES button shown in this image https://i.sstatic.net/cJ78J.png
I am able to locate and click the first Yes button using:
.click(Selector('.c-segmented-control__label').withExactText("Yes"))
However, the second Yes button shares the same classname, causing my script to not find it. How can I define a selector for that one? I have attempted child, nth, and all methods but they do not work.
Thank you