Skip to content

assertLightMode ​

Assert that the device is currently in light mode.

Partial support in Astra Scout

Works on Android devices and emulators and on the iOS Simulator. On a real iPhone the command fails, because WebDriverAgent has no way to read the appearance setting.

Asserts that the device's system-wide dark mode (appearance) is currently disabled. Fails the flow if the device is in dark mode.

Syntax ​

This command takes no arguments.

yaml
- assertLightMode