Infosys interview question

Exception in Java, Alert handling, Oops, alternative for selenium click ect