javascript automatic click

JavaScript
const element = document.querySelector('element');
element.click();
Source

Also in JavaScript: