📄️ checkLink
Fields
📄️ click
Click or tap an element.
📄️ config
Configuration options for Doc Detective operations.
📄️ context
A context in which to perform tests. If no contexts are specified but a context is required by one or more tests, Doc Detective attempts to identify a supported context in the current environment and run tests against it. For example, if a browser isn't specified but is required by steps in the test, Doc Detective will search for and use a supported browser available in the current environment.
📄️ find
Find an element based on display text or a selector, then optionally interact with it.
📄️ goTo
Fields
📄️ httpRequest
Perform a generic HTTP request, for example to an API.
📄️ loadVariables
Load environment variables from the specified .env file.
📄️ record
Start recording the current browser viewport. Must be followed by a stopRecord step. Only runs in Chrome browsers when they are visible. Supported extensions: [ '.mp4', '.webm', '.gif' ]
📄️ runCode
Assemble and run code.
📄️ runShell
Perform a native shell command.
📄️ screenshot
Takes a screenshot in PNG format.
📄️ specification
Fields
📄️ step
A step in a test.
📄️ stopRecord
Stop the current recording.
📄️ test
A Doc Detective test.
📄️ type
Type keys. To type special keys, begin and end the string with $ and use the special key's keyword. For example, to type the Escape key, enter $ESCAPE$.
📄️ wait
Pause (in milliseconds) before performing the next action.