Hi,
I have a situation where my text field or button has its ID changed everytime it is refreshed or a new tab. I looked into inspect and seen the 'Class' of the text field. These 2 are taken at different instances.
1. mat-form-field ng-tns-c59-142 mat-primary mat-form-field-type-mat-input mat-form-field-appearance-legacy mat-form-field-hide-placeholder ng-pristine ng-valid no-hint ng-star-inserted ng-touched
2.mat-form-field ng-tns-c59-84 mat-primary mat-form-field-type-mat-input mat-form-field-appearance-legacy mat-form-field-hide-placeholder ng-pristine ng-valid no-hint ng-star-inserted ng-touched
As you can see everything is kept similar except "c59-84" and "c59-142" . These 2 attributes changes but not the rest. How do I edit the UI Element such that it can identify the text field regardless of the number?
Thanks 🙂

Report
All responses (
Answers (