assertDarkMode
Assert that the device is currently in dark mode.
Partial support in Astra Scout
Works on Android devices and emulators and on the iOS Simulator. On an iOS device 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 enabled. Fails the flow if the device is in light mode.
Syntax
This command takes no arguments.
yaml
- assertDarkMode