I am trying to make to put a date into a field on a website and I have 2 options on how to do this and I can't seem to make either one work.
1. I can put it into the field directly which doesn't seem to be working
I am using the code
I have also tried changing the inner text which makes it look like it works but when I submit it the page it won't recognized that it is anything but the default MM.
Option 2
I have also tried clicking a pop up calender and get the date that way. Now I can click the calender but I can't figure out how to click the right arrow to switch the months.
The code I have tried is
]
Any help would be greatly appreciated as I have spent way to much time trying to figure this out.
1. I can put it into the field directly which doesn't seem to be working
HTML:
<span class="gwt-InlineLabel WCRF WBRF" style="min-width: 14.5px;" data-automation-id="dateSectionMonth" data-automation-activeDateTimeSection="false">MM</span>
I am using the code
Code:
For Each l In ie.document.getElementsByTagName("span") If l.className Like "gwt-InlineLabel WCRF WBRF" Thenl.Value = "10" End If Next
I have also tried changing the inner text which makes it look like it works but when I submit it the page it won't recognized that it is anything but the default MM.
Option 2
I have also tried clicking a pop up calender and get the date that way. Now I can click the calender but I can't figure out how to click the right arrow to switch the months.
HTML:
<div tabindex="0" class="datePickerPreviousButton datePickerPreviousButton-up" role="button" aria-pressed="false">
<input tabindex="-1" role="presentation" style="width: 1px; height: 1px; overflow: hidden; position absolute; z-index: -1; opacity: 0;" type="text">
<i class="WHDF" role="presentation" data-icon-id="" data-icon-rtl-id="" data-automation-id="icon"></i><div class="html-face">‹</div></div>
The code I have tried is
Code:
For Each l In ie.document.getElementsByTagName("div") If l.className Like "datePickerPreviousButton datePickerPreviousButton-up" Then l.click End If Next
Any help would be greatly appreciated as I have spent way to much time trying to figure this out.
Last edited: