launch()
Launches the application.
Declaration
func launch()Discussion
This call is synchronous. When it returns, the application launches and is ready to handle user events. The system reports any failure in the launch sequence as a test failure and halts the test at this point.
If the application is already running, this call terminates the existing instance, to ensure a clean launch state for the newly launched instance.