Is there a way to check directly what screen an XCUIApplication is currently running / is visible on screen?
I want to be able to XCTAssert that the application is currently displaying screen 'X'. I was thinking I might just create a hidden UIElement or button specific to each screen and then assert that that element exists on the screen. Does anyone have a more elegant or direct way of doing this, though?