How can I get all buttons from a page (the number of buttons is not predetermined)?

I want to retrieve all buttons in a pop-up window and press each one of them one by one. How can I achieve that? The number of buttons is not predetermined. It can be one or hundreds.

Hi @cihanhizlikan

Use Get attribute activity and set property as aastate

based on if condition Stroutput.ToString.Contains(“focussable”)

then give click activty

Thanks
Ashwin S