Programmatically clicking all buttons on a page in Chrome's console
Well, you want to make sure you only select the buttons in the section so you are not running the search.
$("#body .btn").trigger("click");
Based on Salketers comment to the question, here's a little script that will programatically click all buttons one by one at a 1 second interval, and also log the clicked button to the console:
var buttons = $("button"),
interval = setInterval(function(){
var btn = $(buttons.splice(0, 1));
console.log("Clicking:", btn);
btn.click();
if (buttons.length === 0) {
clearInterval(interval);
}
}, 1000);
Your class seems to be missing the .
.
Try one of these:
$(".btn").click();
$("button").click();
$("input:submit").click();
$(".btn.small.info").click();