I have a problem with performing this action:
I am looking for the click to be made after performing a series of steps automatically, that is, to simulate the click that the user should make.
What I have tried is the following, but it doesn't work for me:
<mat-tab-group>
<mat-tab id="listaODs" label="Lista de Órdenes">
<div class="row">
<div class="col-md-12">
<mat-table class="mat-table__wrapper" [dataSource]="listOrdenesDespacho"
#MatSort="matSort" matSort perfectScrollbar>
<!-- ... -->
const input = document.getElementById("listaODs") as HTMLInputElement | null
input.click()