I am trying to change the value of the date dropbox on the following website. Whereas my code does change the value, when I click the Show Prices button, the date has not changed. It gets me prices for the dates I chose when I clicked the webpage with the mouse. Could someone please tell me what I am missing?
Thanks for your help!!
Webpage
http://www.tripadvisor.com/Hotel_Rev..._New_York.html
Html Code:
My Code:
Set objElement = objIE_TA.document.getElementsByTagName("SPAN")
For Each input_element In objElement
If input_element.ID = "date_picker_in_1028569" Then
input_element.Focus
input_element.Click
input_element.innerText = "03/05/2014"
Exit For
End If
Next input_element
Or
Call objIE_TA.document.parentWindow.execScript("ta.call('ta.overlays.Factory.loadDatePicker', event, this, '1028569', false, ta.widgets.calendar.handleNewDates , {'calendarOptions' : {'parentContainer' : 'HotelDateSearch', 'fontSize' : '1em'}} )", "JavaScript")
Bookmarks