def wait_for_and_accept_alert(driver, timeout=settings.LARGE_TIMEOUT):
    alert = wait_for_and_switch_to_alert(driver, timeout)
    alert_text = alert.text
    alert.accept()
    return alert_text
Wait for and accept an alert. Returns the text from the alert.
dataset/ETHPy150Open mdmintz/SeleniumBase/seleniumbase/fixtures/page_actions.py/wait_for_and_accept_alert