Skip to content

toggleAirplaneMode ​

Toggle airplane mode on or off during test execution.

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.

Toggles the device's airplane mode on or off.

INFO

This command is only useful on Android. iOS simulators do not have an airplane mode.

Syntax ​

This command takes no arguments.

yaml
- toggleAirplaneMode