I have three buttons withing a div. All three buttons belong to same class (class names are same). What I want to do is capture each button using its text (Buttons have different texts) and xpath of the div.
If it's possible to find buttons separately using button's class name and text I'm OK with that too.
How can I perform such task?
I'm using Java and Testng