I'm trying to check a checkbox on a website using vbscript,
IE.Document.getElementById("ctl32_ctl04_ctl07_divDropDown_ctl242").Checked = True
Website checkbox:
<input id="ctl32_ctl04_ctl07_divDropDown_ctl242" type="checkbox" name="ctl32$ctl04$ctl07$divDropDown$ctl242" onclick="$get('ctl32_ctl04_ctl07').control.OnValidValueClick(this, 'ctl32_ctl04_ctl07_divDropDown_ctl00');">
But I keep getting an error of "Object required: 'IE.Document.getElementById(...)'" I have used this method many times before to check boxes in different websites, but this one in particular I'm having a hard time. This element is inside a dropdown menu.