Instance Property

state

The most recently observed state of the application.

Declaration

var state: XCUIApplication.State { get }

Discussion

Applications are passively monitored to update this property as they change state. Consequently, updates to this property are inherently asynchronous.

Some guarantees are made, however:

See Also

Determining Application State

enum XCUIApplication.State

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