add acceptAlert() and dismissAlert()