If condition clicks in 2 buttons, if one non exist, process

Hello, i am trying to make a bot that clicks two buttons in a url page, but sometimes in that page one of the buttons doesn’t exist and my bot stops. I suppose i must put an if condition, can you help me?

Hi @fluoR23_A !
Welcome to UiPath Community :smile:
I would suggest you to use a try-catch, like this, if you use “Run” to run your bot:


You could also adjust the timeout of your click, so that your bot does not wait 30 seconds by default before seeing that the button does not exist:

thank you, i’ll try but i don’t promise you enything :rofl: