how to click class element js code example
Example: click on div with class javascript
<!--In html:-->
<div class="myDiv with_this_class" > any text </div>
<script>
var divClicked = document.querySelector('.myDiv.with_this_class').click();
</script>