Script Canvas II#
This is a continuation of working in the script visual builder, where you control components, execution modes, and launch tools. This section helps you quickly add components to the schema, automatically connect them, run the script step by step, select an account for execution, and view work logs.
Location: access this section through the left navigation panel, item “Scripts”.
Available actions:
- search for components through the “Components Panel”
- drag and drop components onto the canvas
- add components from “Favorites” via the context menu
- automatically connect new components on the schema
- enable “Headless Mode” and “Step-by-step mode”
- step through each component using “Next step”
- enable auto-scroll of the active block
- run the script with “No browser”
- change the diagram scale
- select an account for script execution
- view environment variables and logs
Components Panel#
The Components Panel is needed to search for and add new blocks to the script. It is located to the left of the canvas and includes component categories, including “Favorites”, “New Actions”, and “Web Actions”.
How to add a component to the canvas:
- Open the “Components Panel” on the left.
- Use the Search... field if needed.
- Expand the required component category.
- Drag the component onto the canvas.
After adding a component, it appears on the schema and becomes available for connection to other elements.
Favorites#
Favorites are used for quick access to frequently used components. Components can be added to this list through the heart icon when hovering over a component in the left panel.
How to manage favorites:
- Find the required component in the “Components Panel”.
- Click the heart icon to add it to “Favorites”.
- Click the icon again to remove the component from the list.
- Right-click on the canvas and add a component from “Favorites”.
Canvas#
The Canvas is used to build script logic from separate components. It allows connecting output points and aligning the scenario structure.
How to assemble the schema:
- Add several components to the canvas.
- Connect the output point of one component to the next one.
- Select the required components and align them using hotkeys.
- Press Delete to remove unnecessary components.
Automatic block connection#
Automatic block connection is used to quickly connect new blocks to each other. The switch is located in the lower builder panel and simplifies building longer chains.
How to enable automatic block connection:
- Enable Automatic block connection in the lower panel.
- Drag a new component onto the canvas next to another block.
- If needed, drag a group of components at once.
- Add several components from “Favorites” through the canvas context menu.
After this, new blocks are connected automatically, and schema construction takes less time.
If Automatic block connection is enabled, new blocks and groups of elements can form a sequential chain without manual connections.
Headless Mode#
Headless Mode is used to run the script without displaying a browser window on the screen. This mode is convenient when a script needs to run in the background without distracting the user with the browser’s visual part.
How to enable Headless Mode:
- Find the “Headless Mode” switch in the lower panel.
- Enable Headless Mode before running the script.
- Start the script with the standard launch command.
After launch, the script runs without displaying a browser window if this behavior is supported by the current scenario.
Step-by-step mode#
Step-by-step mode is used for step-by-step script execution and control of each active block. It allows tracking how execution moves through the schema and manually switching to the next step.
How to work step by step:
- Enable Step-by-step mode in the lower panel.
- Run the script.
- Use Next step to move to the next action.
After this, script execution proceeds step by step, and active blocks sequentially pass through the schema logic.
Auto-scroll#
Auto-scroll is needed to automatically track the current active block during script execution. It helps keep focus on the schema when the scenario passes through distant parts of the canvas.
How to enable auto-scroll:
- Activate Auto-scroll in the lower panel.
- Run the script in the builder.
- Watch the transition between components on the schema.
After activation, the focus automatically follows each execution step and centers the active component.
No browser#
No browser is used to run the script without opening a browser window.
How to enable No browser:
- Find the “No browser” switch in the lower panel.
- Enable No browser before launch or during execution preparation.
After this, the scenario runs without opening a browser window according to the available environment configuration.
Use No browser only when visual browser control is not required for the current scenario.
Diagram scale#
Diagram scale is needed to change the zoom level of the diagram within the canvas. The scale control is located on the right side of the lower panel and helps work conveniently with both large schemas and detailed scenario fragments.
How to change the scale:
- Find the scale control in the lower panel.
- Apply the required zoom level for the current schema.
After changing the scale, the canvas becomes more convenient for viewing the structure or precisely editing separate blocks.
Account selection menu#
Account selection menu is used to define the account with which the current script will be executed.
How to select an account:
- Open the account menu in the lower right corner.
- Use Search... if needed or scroll through the list.
- Select the required account for running the scenario.
After selection, this account is used for further script execution.
Environment variables#
Environment variables are used to view the current values used in this script. In the corresponding window, you can check the set of variables, hide or show their values, and copy the required data.
How to work with environment variables:
- Open “Environment variables”.
- Review the list of available variables for the current scenario.
- Click the eye icon to hide or show values.
- Click the Copy icon to copy a value.
After this, you can quickly check the current launch parameters and use the required values without editing the schema.
Logs#
Logs are used to monitor scenario execution and open the log file. The window opens through the “Logs” button and provides commands for refreshing the log, loading additional records, and opening a separate file.
How to view logs:
- Click Logs.
- In the log window, click Refresh.
- Click Load more to view additional records.
- Click Open log file.
- Close the separate file window and return to the log window.
- If needed, click refresh all data icon, then Confirm.
After this, you get the current execution log and can check the script operation details.
Workflow Scenario#
Step 1: Open the script
Go to the “Scripts” section and open the required scenario. In the builder, check the “Components Panel” and the central canvas.
Step 2: Add components
Find the required components through “Search...”, drag them onto the canvas, and add them to “Favorites” if needed.
Step 3: Build connections
Connect blocks manually or enable “Automatic block connection” so that new elements form chains automatically.
Step 4: Run verification
Enable “Headless Mode” and “Step-by-step mode”, run the script, and use “Next step” for step-by-step execution.
Step 5: Monitor execution
Enable “Auto-scroll”, activate “No browser” if needed, change the diagram scale, and select an account through the menu in the lower right corner.
Step 6: Check data
Open “Environment variables”, review values, copy the required parameters, and check “Logs”.