setAirplaneMode
Enable airplane mode to test offline behavior.
Partial support in Astra Scout
Android is fully supported. On iOS Simulators the command is skipped and passes with no effect, because simulators have no airplane mode. On a real iPhone Astra Scout drives the Settings app to flip the switch, which is slower and depends on the iOS version and language.
The setAirplaneMode command enables or disables airplane mode on the device.
Syntax
The command takes a single required argument that specifies the desired state for the airplane mode.
The following example enables airplane mode:
yaml
- setAirplaneMode: enabledThe following example disables airplane mode:
yaml
- setAirplaneMode: disabled