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

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

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