For the complete documentation index, see llms.txt. This page is also available as Markdown.

toggleDarkMode

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.

Syntax

This command takes no arguments.

- toggleDarkMode

Last updated