get button id and click onclick using javascript code example
Example: javascript click button by id
var button = document.getElementById("button");
button.click();
var button = document.getElementById("button");
button.click();