toggleDarkMode
Toggle dark mode on or off during test execution.
Last updated
Toggle dark mode on or off during test execution.
Toggles the device's system-wide dark mode (light/dark appearance) state.
On Android, this toggles the system night mode setting. On iOS, this controls the simulator's system appearance. On web, this forces the prefers-color-scheme media query, which affects any page using it to detect dark mode.
This command takes no arguments.
- toggleDarkModeLast updated