Open UI Explorer and Indicate one of the buttons…Check the Properties and find a property/Attribute like name or innertext generally which contains the name of the button…use a variable in place of that name value and pass the requried button name.
Make sure you remove any id or specific attributes only to that button…
to check once you have the selector change the name value and validate again and see if the corresponding button is getting highlighted