def wait_for_element_absent(driver, selector, by=By.CSS_SELECTOR,
                            timeout=settings.LARGE_TIMEOUT):

    for x in range(int(timeout * 10)):
        try:
            driver.find_element(by=by, value=selector)
            time.sleep(0.1)
        except Exception:
            return
    raise Exception("Element %s was still present after %s seconds!" %
                    (selector, timeout))
Searches for the specified element by the given selector.
dataset/ETHPy150Open mdmintz/SeleniumBase/seleniumbase/fixtures/page_actions.py/wait_for_element_absent