def wait_for_and_switch_to_alert(driver, timeout=settings.LARGE_TIMEOUT):

    for x in range(int(timeout * 10)):
        try:
            alert = driver.switch_to.alert()
            # Raises exception if no alert present
            dummy_variable = alert.text  # noqa
            return alert
        except NoAlertPresentException:
            time.sleep(0.1)
    raise Exception("Alert was not present after %s seconds!" % timeout)
Load a list of feature files and merge them.
dataset/ETHPy150Open mdmintz/SeleniumBase/seleniumbase/fixtures/page_actions.py/wait_for_and_switch_to_alert--crossover with--dataset/ETHPy150Open EducationalTestingService/skll/skll/experiments.py/_load_featureset