Определите 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
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

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