One of my screen has multiple text fields, I can land to this screen from different other screens. In each case I am making one or another text field as first responder. I a
I don't know but maybe selected property on XCUIElement is what you're looking for. Try it.
selected
XCUIElement