We do not know which Pop up will come first, sometimes the pop up will come in 10 Seconds or more than 3 minutes.
How can we make the bot to wait dynamically for pop up?
We can use pick branches here. 3 branches - 2 with the elemnt exist of the two message boxes and 3rd with a delay with time of upper threshold to wait. This is just one of the solution ,you can write other logic as well using element exists as suggested by @lakshman