I have the same issue in one of my processes and I used SAP mode to spy those buttons.
I'm dealing with this including a wait stage, click on the button then a wait stage with multiple options, if the correct popup showed up, continue process if the other button was clicked, close current popup and click the correct button again