So in XCUITest I use this code to get a button:
XCUIApplication *app = [[XCUIApplication alloc] init];
XCUIElement *button = app.buttons[@"button_identifier"];
getting a tableview using app.tables and image using app.images and so on.
But how can I get a view(UIView)?