Enable airplane mode to test offline behavior.
The setAirplaneMode command enables or disables airplane mode on the device.
setAirplaneMode
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.
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
toggleAirplaneMode
Last updated 24 days ago