Simulasi klik naskah

let element: HTMLElement = document.getElementsByClassName('btn')[0] as HTMLElement;
element.click();
Smoggy Sardine