How to handle random popup

Yes. It will be too complicated to use lots of try-catches.

Aside Parallel it seems it makes sense to create an activity called PopupScope. Before going to the next instruction within PopupScope it will permanently check if we have a popup on the screen plus it will contain instruvtions on how to handle the popup (click ok, click cancel, etc).