I am trying to automate testing a site that has a form for filling out and loading an excel sheet. Data is sent in an HTTP request. Since it has this, I used urllib2 to get the url, but there is an Open / Save dialog box that appears to load the sheet.
So, I started using selenium , which can handle this function, but there is a javascript function and they cannot pass values.
This is the problem faced by the datepicker file used by calendarDateInput.js and its function is used as
<td align="center"><script>DateInput('startDate', true, 'YYYY-MM-DD')</script> </td>
I need to pass my date through selenium and tried this:
At first I tried using
driver.find_element_by_id("endDate_Year_ID").clear()
driver.find_element_by_id("endDate_Year_ID").send_keys("2013")
, , javascript
browser.execute_script("document.getElementById('endDate_Year_ID').value = '2013'")
urllib2 , javascript python
Linux, send_keys
.