Tag Selected: how to handle alerts in selenium