'Block until the value is found in the CSS selector.'

def wait_for_value(self, css_selector, text, timeout=10):

    from selenium.webdriver.common.by import By
    from selenium.webdriver.support import expected_conditions as ec
    self.wait_until(ec.text_to_be_present_in_element_value((By.CSS_SELECTOR, css_selector), text), timeout)
