If element exist

Hey guys,
I am writing a code and occasionally (about 1% of the time) a pop-up appears at the last activity of the code. How can I modify my code so that if the element exist, it automatically presses the ‘X’ button and continues with other tasks?

Hi @Sarunas_Brazauskas ,

You can use On Element Appear activity, and in the body of it simple use close window activity.

You can define the timeout in the properties i.e. for how long you want the bot to wait for the popup, if the popup doesnot appear, it will simply move ahead.

Use these settings: