Volker Voecking Software Engineering

XCUITest
Wed, Jan 24, 2018
Fresh install in the simulator To make sure that your UI tests start with a fresh install of the app on the simulator you can uninstall the app after building the UI tests: Open the project settings, go to the UITests target and in the section “Run Script” add the following command line: xcrun simctl uninstall booted com.vvse.toiletmap Use “accessibilityIdentifier” or “accessibilityLabel” to identify UI elements If possible use accessibilityIdentifier or accessibilityLabel to identify a UI element.