February 2018
Intermediate to advanced
346 pages
9h 56m
English
Next comes the interactive aspect of this chapter—actually recording and taking snapshots on demand. Earlier on in the chapter, we discussed the theory behind working with UI tests and recording screenshots, so lets put our theory into practice.
In Xcode, open up the FirefoxUITests.swift file. Within the setup() method, add the following code, replacing all default content:
let app = XCUIApplication() setupSnapshot(app) app.launch()
Next, focus your cursor on the sample function func TestExample(), and that should enable the Record button. Select the Record button to start recording, as shown in the following screenshot:
This should launch Simulator, allowing you to interact with the app and start recording ...
Read now
Unlock full access