wait for alert if it's not immediately appeared