XCUITest Swift 4 iOS 11 Xcode 9.2

A sample project with lots of working examples can help you navigate XCTest and XCUITest with the new Swift 4.

This is not so much a working app as it was a project to walk the code to find out what will work. StackOverflow had lots of out dated examples on how to do these UI tests, so I took time to figure out XCUITest. XCTest Unit tests worked fine.

Access a label by identifier, and then the labels text element value;
The label’s accessibility identifier is “GasType” which allows us to access that label. Then get the .label allows us to retrieve the text part of the label to what it has changed too.