It is a good practice to have indexes present in the selectors to identify the element uniquely.
Yes
No
Verified Answer
Correct Option -
Anush said
Having indexes in selectors to uniquely identify elements can be helpful in specific cases, but it's not considered a best practice in general. Index-based identification can become fragile, as the positions of elements might change, and the index-based selector might fail.