def wait_for_and_dismiss_alert(driver, timeout=settings.LARGE_TIMEOUT):
alert = wait_for_and_switch_to_alert(driver, timeout)<EOL>alert_text = alert.text<EOL>alert.dismiss()<EOL>return alert_text<EOL>
Wait for and dismiss an alert. Returns the text from the alert.
@Params
driver - the webdriver object (required)
timeout - the time to wait for the alert in seconds