I have a chrome extension and i need JavaScript to click on this button, but it is not working.
This is the button that needs to be clicked with JavaScript.
<a class="button checkout" data-no-turbolink="true" href="...">checkout</a>
This is what I tried but it is not working
document.getElementsByClassName("button checkout").click();