# Capture a page screenshot

Capture a page screenshot on Evotec with practical examples, usage guidance, and reusable project workflows.

Project

HtmlTinkerX

HtmlTinkerX is a powerful async C# library for HTML, CSS, and JS processing, parsing, formatting, and optimization. It provides web content processing capabilities including browser automation, document parsing with multiple engines, resource optimization, and more. PSParseHTML is the PowerShell module exposing HtmlTinkerX to PowerShell.

[View on GitHub](https://github.com/EvotecIT/HtmlTinkerX) [Visit Website](#) [Releases](https://github.com/EvotecIT/HtmlTinkerX/releases/tag/PSParseHTML-PowerShellModule.v3.0.0) [Changelog](#) [Get package](https://www.nuget.org/packages/HtmlTinkerX)

Stars**141**

Forks**17**

Open issues**0**

PowerShell Gallery downloads**95274**

Release**v3.0.10**

Language: HTML Updated: 2026-11-23

Curated Examples

Use PSParseHTML to capture browser-backed output from PowerShell.

This pattern is useful when an operations script needs an image artifact from a web page or local HTML output.

It is adapted from the PSParseHTML command mapping in the HtmlTinkerX README.

## When to use this pattern

- You need a screenshot as part of a report or validation run.
- The page has to be rendered by a real browser engine.
- The workflow is PowerShell-first.

## Example

```powershell
Import-Module PSParseHTML

$session = Start-HTMLSession -Url 'https://example.com'
Save-HTMLScreenshot -Session $session -OutFile "$PSScriptRoot\example.png"
Close-HTMLSession -Session $session
```

## What this demonstrates

- using the PowerShell module surface
- producing a screenshot artifact from a URL
- keeping browser-backed rendering inside an automation script

## Source

- [HtmlTinkerX README](https://github.com/EvotecIT/HtmlTinkerX/blob/v2-speedygonzales/README.md)

<!-- PowerForge markdown artifact sha256:27F72DF90FB6B3FDCE792EBAD652568AB37373570D345D1DE8FC9C21A53DE25A -->
