renderer/utils/helpers.js
/**
 * Trigger a click event
 * @param {HTMLElement} element
 */
Trigger a click event
@param {HTMLElement} element
Trigger a click event @param { HTMLElement } element
function click(element) {
    const event = document.createEvent('HTMLEvents');
    event.initEvent('click', true, false);
    element.dispatchEvent(event);
}
function click ( element ) { const event = document . createEvent ( 'HTMLEvents' ) ; event . initEvent ( 'click' , true , false ) ; element . dispatchEvent ( event ) ; }
Trigger a click event
 @param {HTMLElement} element
Trigger a click event @param { HTMLElement } element