How to get value from date filter input field with Selenium
Question: There is a date filter with input fields and drop-down datepicker like on
below image[![date filter
image](http://i.stack.imgur.com/O6BYm.png)](http://i.stack.imgur.com/O6BYm.png)

I want to get current value of, for example, "From" input field (expected
output = `"03/13/2013"`). So for following element's code

    
    
    <div class="input-group date" id="inputValidFrom">
            <input name="validFrom" class="form-control" id="inputValidFromValue" required="" type="text"> </input>
    

I use `Python's` lines:

    
    
    >>>from selenium import webdriver
    >>>driver = webdriver.Ie()
    >>>input = driver.get_element_by_xpath('//input[@name="validFrom"]')
    >>>input.text # returns empty string
    ''
    >>>input.get_attribute('value') # also returns ''
    ''
    >>>input.value_of_css_property('text') # returns again just empty string
    ''
    

Who knows the way how to get this input field box property?


Answer: You are using the IE-Driver with XPath. Try writing the attribute name in
lower case. <http://www.seleniumhq.org/docs/03_webdriver.jsp#by-xpath>

