Element Command Line Interface
Flood Element is a browser based load generation tool built on top of Puppeteer. It provides an easy to use set of commands for automating most user interfaces, including mouse actions such as click and drag, keyboard key press actions, and working with inputs, buttons, and menus.
element run <file.ts> [options]
Run a test script locally.
--browserSpecify the browser type used to run the test, using either
--executable-pathpath to the installation folder of a custom Chromium-based browser, used to run the test. If set, Element will ignore the browser settings, and use this custom browser instead.
--chromeSpecify which version of Google Chrome to use.
--no-headlessRun in non-headless mode so that you can see what the browser is doing as it runs the test
--devtoolsRun in non-headless mode and also open devtools
--no-sandboxDisable the chrome sandbox - advanced option, mostly necessary on linux
Running the test script:
<file>and rerun the test when it changes.
--ffRun the script in fast-forward: override the
stepDelaysettings to 1 second in the test script Specify a number to set a different delay.
--slow-moRun the script in slow-motion: Increase the actionDelay and stepDelay settings in the test script to 10 seconds. Specify a number to set a different delay.
--step-delayOverride stepDelay test script setting
--action-delayOverride actionDelay test script setting
--loop-countOverride the loopCount setting in the test script.
--strictCompile the script in strict mode. This can be helpful in diagnosing problems.
--work-rootSpecify a custom work root to save the test results. (Default: a directory named after your test script, under /tmp/element-results of your project folder)
--test-data-rootSpecify a custom path to find test data files. (Default: the same directory as the test script)
- file the test script to run