'Waits until ``selector`` is NOT found in the browser, or until
``timeout`` is hit, whichever happens first.'

def wait_until_not(self, selector, timeout=3):

    from selenium.webdriver.common.by import By
    WebDriverWait(self.driver, timeout).until_not(expected_conditions.presence_of_element_located((By.CSS_SELECTOR, selector)))
    return self
