Close an error Message box until it stops appearing

A message box is keep on appearing on the screen after a log in. I want to keep on closing that message box until it stops appearing. Once it stops I have continue with the process. how can i achieve it in Uipath. Kindly suggest me.

Hi @yogeshgyw. you could use a Element exists and While loop for that.