Hey guys,
I'm using WebDriver and coding in Python, and I'm stumped as to how to insert a date value into the 'Date' field of this site:
http://matrix.itasoftware.com (multi-city tab, Flight 1).
I can get the ID of that specific date field (
ita_form_date_DateTextBox_0
), but any attempts to type a date there gets an 'ElementNotVisibleException' error message instead.
My code was:
flight_date = driver.find_element_by_xpath(".//*[@id='ita_form_date_DateTextBox_0']")
flight_date.send_keys("01/27/2014")
Clicking on that Date field would reveal a calendar table, which I think would be even trickier to interact with.
However, on checking the code, when I type in the date, it inserts the value of the date on a hidden input field:
<input type="hidden" value="2014-01-07" sliceindex="0"/>
How would I insert the date value to a hidden input field?