# Dynamic Locator in iOS App

**URL:** <https://discuss.appium.io/t/dynamic-locator-in-ios-app/38450>\
**Category:** Support\
**Created:** [February 3, 2023, 3:39pm UTC](https://discuss.appium.io/t/dynamic-locator-in-ios-app/38450 "2023-02-03T15:39:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Elvin\_Danyarov](https://discuss.appium.io/user_avatar/discuss.appium.io/elvin_danyarov/32/10355_2.png) [@Elvin\_Danyarov](https://discuss.appium.io/u/Elvin_Danyarov)\
**Post date:** [February 3, 2023, 4:23pm UTC](https://discuss.appium.io/t/dynamic-locator-in-ios-app/38450/3 "2023-02-03T16:23:57Z")

</div>

@Aleksei wasnt sure if that was request or not, but sharing different versions based on (I said **“Lina Test Enrollment”** is dynamic because there might be different names for it, not specifically that one, but number of days is decreasing by 1 each day and affects the locator as well as below):

**Yesterday** : **-ios class chain:** \*\*/XCUIElementTypeButton[`label == "Lina Test Enrollment, Due in 332 days"`]  
**Today** : **-ios class chain:** \*\*/XCUIElementTypeButton[`label == "Lina Test Enrollment, Due in 331 days"`]  
**Tomorrow** : **-ios class chain:** \*\*/XCUIElementTypeButton[`label == "Lina Test Enrollment, Due in 330 days"`]

---

_[View the full topic](https://discuss.appium.io/t/dynamic-locator-in-ios-app/38450)._
