In addition to the usual configuration in the UI, you can use Script mode to configure your clickpath or single-URL monitors. In this mode, you can access the underlying JSON script of your monitor. If you're a synthetic power user, this will make your life a lot easier and allow you to speed up clickpath creation and management. Use the script editor to quickly find specific events (steps), adapt locators across the whole script, or edit parts of the clickpath without rerecording.
You aren't limited to just one mode—you can switch back and forth between the UI and script modes by clicking the Clickpath/Script switch.
To edit your clickpath browser monitor in script mode:
To edit your single-URL browser monitor in the script mode:
You can download the script (Download script as .json) or just copy it from the editor and edit it in a text editor of your choice. However, you can also edit the script directly in the browser. This provides the following benefits:
Note that you need to escape all special characters and break lines with a backslash (for example, a new line is \n, double quotes is \", and tab is \t).
You can play your changes back for clickpath scripts without saving them—just click Play back clickpath.
Contains the monitor script.
ScriptConfig object Contains the setup of the monitor.
customDevice object Contains the emulated device of the monitor.
predefinedDevice object Contains one of the preconfigured device emulations.
bandwidthOptions object Contains the emulated network conditions of the monitor.
predefinedBandwidth object Contains the pre-configured network emulations.
requestHeader object Contains the list of HTTP headers to be sent with requests of the monitor.
The following headers are not allowed:
requestCookie object Contains the list of cookies to be created for the monitor.
Every cookie must be unique within the list. However, you can use the same cookie again in other event.
navigateEvent object Contains a Navigate event.
interactionEvent object Contains a Click or a Tap event.
javaScriptEvent object Contains a JavaScript event.
selectOptionEvent object Contains a Select option event.
cookieEvent object Contains a Cookie event.
keystrokesEvent object Contains a Keystroke event.
waitCondition object Contains the wait condition for an event.
validationType object Contains the validation rule for an event or waiting rule.
plainAuthenticationType object Plain login credentials to bypass the browser login mask during a Navigate event
secureAuthenticationType object The login credentials to bypass the browser login mask during a Navigate event.
credentialType object The credentials from the credential vault.
listOptions object Contains the options to be selected in the Select option event.
targetType object Contains the target tab or element of the event.
locatorType object Contains an element of a page to look for.
Synthetic Classic