Add support for checking the text of the alert to handle_alert.