I am also having trouble trying to click a Div Class ID.
I have tried this code, but get the Runtime error 424 (Object Required):
IE.document.getElementById("PRGEF2021-05-02-08.33.00.00018").Click
Here is the HTML of the CSS button I am trying to click:
HTML Code:
<div class="search-results-tee-times-box eighteen-holes PRGE-box" id="PRGEF2021-05-02-08.33.00.00018" style="height: 153.3px;" onclick="isNotLocked('PRGE', 'F', '2021-05-02', '08:33', 18, 1, function() { document.getElementById('Players').value='';loadGenericMessage102Popup(function() { unlockBooking('PRGE', 'F', '2021-05-02', '08:33') }, getPopupTop('PRGEF2021-05-02-08.33.00.00018') );scrollSize102(); }, false, 'PRGEF2021-05-02-08.33.00.00018')">
<p class="time">
8:33<span class="am-pm">am</span>
</p>
<p class="price"></p>
<p class="item-description-PRGE item-description" style="height: 0px;"></p>
<a class="anchorbutton players-holes-button-50" href="javascript:void(0)">
<div class="players-allowed">
1 Player
</div>
<div class="booking-holes">18 Holes</div>
<div class="right-arrow">►</div>
</a>
<script type="text/javascript">
document.getElementById("PRGEF2021-05-02-08.33.00.00018").setAttribute("onclick", "isNotLocked('PRGE', 'F', '2021-05-02', '08:33', 18, 1, function() { document.getElementById('Players').value='';loadGenericMessage102Popup(function() { unlockBooking('PRGE', 'F', '2021-05-02', '08:33') }, getPopupTop('PRGEF2021-05-02-08.33.00.00018') );scrollSize102(); }, false, 'PRGEF2021-05-02-08.33.00.00018')");
</script>
</div>