Selenium Webdriver Python: I can't seem to locate all the text in a label tag
Question: 
    <label class="control-label">
       Rental Charge:
       <span class="required" ng-show="vm.rentalInfo.reason">* (Min of $30.00)</span>
    </label>
    

I used

    
    
    driver.find_element_by_xpath("//label[@ class = 'control-label']/span[@class = 'required']").text 
    

and the only `text` I get back is the `asterisk *`, `(Min of $30.00)` is not
displayed. Does anyone know why this is?


Answer: I am guessing this is a timing issue. [Wait](http://selenium-
python.readthedocs.io/waits.html#explicit-waits) for "$" to be present in
element explicitly with `text_to_be_present_in_element` expected condition:

    
    
    from selenium.webdriver.common.by import By
    from selenium.webdriver.support.ui import WebDriverWait
    from selenium.webdriver.support import expected_conditions as EC
    
    wait = WebDriverWait(driver, 10)
    elm = wait.until(EC.text_to_be_present_in_element((By.CSS_SELECTOR, 'span[ng-show*="rentalIn‌​fo.reason"]'), "$"))
    print(elm.text)
    

