Class

XCUIApplication

A proxy for an application that can be launched and terminated.

Declaration

@interface XCUIApplication : XCUIElement

Topics

Creating an Application Proxy

- init

Creates a proxy for the application specified as the “Target Application” in Xcode’s target settings.

+ new

Creates a proxy for the application specified as the "Target Application" in Xcode's target settings.

- initWithBundleIdentifier:

Creates a proxy for an application associated with the specified bundle identifier.

- initWithURL:

Creates a proxy for the application at the specified file system URL.

Launching the Application

- launch

Launches the application.

launchArguments

The arguments that will be passed to the application on launch.

launchEnvironment

The environment variables that will be passed to the application on launch.

Activating the Application

- activate

Activates the application.

Terminating the Application

- terminate

Terminates any running instance of the application.

Determining Application State

state

The most recently observed state of the application.

XCUIApplicationState

The possible states an application can be in during UI testing.

Instance Methods

Relationships

Inherits From