How I will able to click the other Action button?


I have this button in which it is like an Action button when clicked it will show different choices like complete, cancel, etc. My problem is it has several of these buttons on the page with the same function but with a different id on the XPath attribute value. When I run my test case and mark the first button complete, it would disable the "complete button the next time you clicked the 'action button. My question is how could I run my test cases to click these other buttons without changing the ids on XPath?