cara menekan tombol melalui konsol alat dev
document.getElementById('mainbar').addEventListener("click", function()
{
console.log('main bar clicked');
});
Using jQuery:
$('#buttonid').click();
Hurt Hare