Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Generating Accessibility Identifiers Easily and...

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Generating Accessibility Identifiers Easily and Consistently Using Reflection API

UI TestではAccessibility Identifierを利用して、View 要素の特定をします。
このAccessibility Identifierを簡単に一貫性のある形で設定するための方法を紹介しています。

本文で紹介のコードは以下のGistで公開しています。
https://gist.github.com/ngtk/7d4a92ad506df7f9a36f75f6c63ec835

このトークはPotatotips #61で発表したものです。
https://potatotips.connpass.com/event/127296/

PR:
iOS Nightでは本トークのような内容を毎週火曜日に共有しています。
https://github.com/wantedly/ios_night

Avatar for Kento Nagata

Kento Nagata

May 15, 2019
Tweet

More Decks by Kento Nagata

Other Decks in Technology

Transcript

  1. ©2019 Wantedly, Inc.  ϓϩύςΟ໊͸ͦͷίϯςΩετʹ͓͍ͯ
 ҙຯ͕ద੾  Ϋϥε໊ΛؚΊΔ͜ͱͰΑΓҰҙʹ w &$6*&MFNFOUͷαϒεΫϦϓτΛར༻Ͱ͖·͢

    αϒεΫϦϓτ͸EFDFOEBOUΛ୳ࡧ͢ΔͨΊɺ
 Ϋϥε໊Λؚ·ͳ͍৔߹ʹ໋໊িಥϦεΫ͕͋Γ·͢  w Ϋϥε໊͕ΞϓϦ֎෦ʹ࿐ग़͍ͯ͠Δ఺ʹ஫ҙ͕ඞཁͰ͢  ϓϩμΫτίʔυΛ୳͠΍͘͢ͳΔ ϝϦοτ