Instance Property

state

The most recently observed state of the application.

Declaration

@property(readonly) XCUIApplicationState state;

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

XCUIApplicationState

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