@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"
]