A Selenium professional wants to ensure locators remain stable as the application evolves. Which attribute should be preferred when available?
-
A
CSS class name shared across many elements
-
B
Auto-generated numeric ID from the framework
-
C
A dedicated `data-testid` attribute added by the development team
-
D
The element's visible text content