Skip to content

ElementScreenshot.cs

Avrigeanu Laurian edited this page Apr 14, 2023 · 1 revision

ElementScreenshot(saveToPath: string) : void

Parameters

  • saveToPath: A string representing the file path where the screenshot of the active element will be saved.

Returns

  • None

Remarks

  • This method captures a screenshot of the currently active element and saves the image file to the specified saveToPath. Ensure that the provided path is valid and has proper write permissions to avoid any issues during file saving. The file will be saved in the default image format, which is usually .png.
Clone this wiki locally