Static ID not showing for material controls
I am using material UI for my angular application.I am facing some issues in ID field.Automation team needs ID for their automation scripting. Material is dynamically creating ID.So they are unable to use it.
<mat-tab-group> <mat-tab label="One" id="testID"> Content 1 <button (click)="printTab()">click me</button> </mat-tab> <mat-tab label="Two"> Content 2 </mat-tab> <mat-tab label="Three"> Content 3 </mat-tab> </mat-tab-group>
testID is not showing. instead of this id is 'mat-tab-label-0-0'
.
Is there any alternate way for this?