setAirplaneMode

Enable airplane mode to test offline behavior.

The setAirplaneMode command enables or disables airplane mode on the device.

circle-info

This command is supported on Android only.

iOS simulators do not have an airplane mode.

On web or iOS, the command will pass but has no effect.

Syntax

The command takes a single required argument that specifies the desired state for the airplane mode.

The following example enables airplane mode:

- setAirplaneMode: enabled

The following example disables airplane mode:

- setAirplaneMode: disabled

Last updated