Answers for "how to auto click webpage in angular"

0

how to auto click webpage in angular

@ViewChild('myButton') myButton : ElementRef;

triggerClick() {
    let el: HTMLElement = this.myButton.nativeElement as HTMLElement;
    setTimeout(()=> el.click(), 5000);
}
Posted by: Guest on May-23-2021
0

how to auto click webpage in angular

<button #myButton id="refresh" class="btn- fa fa-refresh" aria-hidden="true" value="referesh" (click)="triggerClick()">  Refresh</button>
Posted by: Guest on May-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language