In some places we can locate element by accessibility id or by id.
Is one be prefered over the other one while both locators are available?
created
Oct '17
last reply
Sep '18
- 5
replies
- 2.5k
views
- 5
users
- 4
likes
In some places we can locate element by accessibility id or by id.
Is one be prefered over the other one while both locators are available?
Accessibility Id is a better approach. The main advantage is that it can be set by the developers. So you get it in the way you want. Also, if you want to run scripts cross platform (ie both Android and iOS), then Accessibility Id would be of great help as you can use same ids for both android and ios