I am getting started with UI testing with Xcode and I am trying to check for the value of a UITextField. I can easily do this by
XCTAssertTrue(app.staticTexts[@"value of string"].exists);
I do, however, want to do the very same thing with dynamic content. Ideally, I would need something like
NSString* requiredValue = "computed string";
XCTAssertTrue(app.staticTexts[requiredValue].exists);
How can I implement this? I would greatly appreciated any hint or link to good resources that might answer this question.