Hi folks,
how would you handle the below locator:
**/XCUIElementTypeStaticText[label == "Mar 31, 1999"
]
//XCUIElementTypeStaticText[@name=“Mar 31, 1999”] - “Mar 31, 1999” part of locator is dynamic and can change anytime to another date.
I was thinking as below but not too sure:
//XCUIElementTypeStaticText[matches(@label, “^[A-Z][a-z]{2} \d{2}, \d{4}$”)]