Report question

Question: Detect if an alert or confirm is displayed on a page