How to click a button every second using JavaScript?
This would work
setInterval(function(){$("#myButtonId").click();}, 1000);