For the complete documentation index, see llms.txt. This page is also available as Markdown.

Screenshot

Screenshot is an action that commands the browser to automatically capture the interface of the current webpage. This action is very useful for you to store evidence of completed tasks, capture QR Codes, or save error interfaces when the script encounters issues for easier debugging.

🎥 Watch the tutorial video: Here.

Configuration parameters:

  • Output path: The absolute path to the folder on your computer where you want to store the image after capturing (e.g., D:\GPM_Automate\Screenshots).

  • File name: The name of the image file you want to set (e.g., success_evidence.png). You can pass dynamic variables such as account numbers or timestamps here to avoid overwriting previous files.

  • Full page: Check this option if you want the system to capture the entire webpage from top to bottom. If unchecked, the system will only capture the current viewport (the area currently visible).

  • Output variable: The variable name of GPM Automate used to store the absolute path of the image file created after a successful capture.

Practical example: Automatically save confirmation image after successful post

When you create a script to automatically post sales or increase interactions. After the system displays the message "Post successful," you want to take a screenshot to report to the customer:

  • Configuration:

    • Output path: D:\MMO_Project\Report

    • File name: account01_done.png

    • Full page: Checked (to capture the entire content of the post that extends below).

    • Output variable: savedImagePath

  • Result: GPM Automate will capture the entire webpage, package it into an image file saved in the specified folder, and store the file path in the variable $savedImagePath for you to use in subsequent actions to send reports via Telegram/Discord.

Last updated

Was this helpful?