Implementing implicit wait for an alert