Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens if I use accessibilityIdentifier and accessibilityLabel on same element

What happens if I use an accessibilityIdentifier and an accessibilityLabel on same element? Will one override the other, will it still be accessible to a disabled user?

like image 364
mattman88 Avatar asked Sep 07 '25 14:09

mattman88


1 Answers

Accessibility identifiers are for only automation testing. They are not helpful for users/developers. You can use accessibility label/hint. Even if you set them both, they will not be overridden.

like image 105
Teja Nandamuri Avatar answered Sep 10 '25 06:09

Teja Nandamuri