Определите UISearchBar с помощью идентификатора доступности во время UITestCase.IOS

Программируем под IOS
Anonymous
Определите UISearchBar с помощью идентификатора доступности во время UITestCase.

Сообщение Anonymous »


I have one UISearchBar on my one of UIViewController. But UISearchBar doesn't have accessibility identifier by default so I have tried to define manual accessibility identifier using "User Define Runtime Attribute".


Изображение


But during UITestCase writing I can not access or identify UISearchBar by using "User Define Runtime Attribute". But I can't access it with identifier. I always have to go with placeholder text that I don't want to use because it causes issue while have "multi-language" support.

I have refer stack overflow answer regarding this issue, but none of them meet to my requirement.

Please help to provide solution for it. Thank you.


Источник: https://stackoverflow.com/questions/483 ... uitestcase

Вернуться в «IOS»