Unexpected popup

Hello,
i need to intercept a popup window that appears not frequently and i haven’t access on the deploy machine, there are solution to make sure that if appear click on OK on it, without having phisically the button in studio?
Thx