Contents

XCUIApplication

A proxy that can launch, monitor, and terminate a test application.

Declaration

@MainActor class XCUIApplication

Mentioned in

Overview

Use this class to launch, monitor, and terminate your app in a UI test. Use wait(for:timeout:) to launch your app and wait for it to reach an expected state before you check test conditions.

Topics

Creating an application proxy

Launching the application

Activating the application

Terminating the application

Determining application state

Waiting for an application state

Resetting authorization status

Performing an accessibility audit

Initializers