automate clicking a button on a website chrome code example

automate clicking a button on a website chrome

1

1 Example

0
setInterval(function() {
  var elements = document.getElementsByClassName("btn submit popup-alert-close");

  elements = Array.prototype.slice.call(elements);

   if(!elements.length) return;
  elements.forEach(function(btn) {
     btn.click();
  });
}, 200);
by on

Other Code Examples