I'm looking for a way to add a small delay of 1 second after each button is clicked in my code. I want the buttons to be clicked one after the other, not all at once. How can I achieve this until all buttons are clicked?
Below is the current code:
var inputs = document.getElementsByClassName('xxxxxxxx');
for (var i=0; i<inputs.length;i++) {
inputs[i].click();
}