Electron Recording Options

CukeTest provides several settings for Electron recording to accommodate different Electron testing scenarios. These options are not completely the same as Web recording options—some are derived from Web recording, while others are unique to Electron.

Electron Recording Options

Electron Application

Specify the path to the Electron executable here. This corresponds to the executable-path property of the launch() method, telling CukeTest which Electron executable to use to start and begin recording.

Command Line Arguments

You can enter any command-line arguments required to start the Electron application. For example, to check the Electron version, enter the path to the Electron executable in the Electron Application field and -v in the Command Line Arguments field, then start recording.

Recording Parameters

In addition to the common Web recording parameters, there are two new options: environment variables env and working directory cwd:

  • env: Environment variables, specified as a JSON object, used when launching the Electron application.
  • cwd: Working directory, specifying the directory from which the Electron application is launched. If the target application depends on a specific working directory (e.g., using process.cwd() for path concatenation), setting this ensures proper behavior during automated recording.
  • color-scheme: Sets the application's color mode (dark or light), see Web Recording Parameters
  • geolocation: Sets geolocation information, see Web Recording Parameters
  • locale: Sets the application's locale, see Web Recording Parameters
  • timeout: Sets the timeout, see Web Recording Parameters
  • timezone: Sets the timezone information, see Web Recording Parameters