Compare-HtmlStaticRendered

August 3, 2026 ยท View on GitHub

SYNOPSIS

Compares static HTML with browser-rendered HTML using parsing-friendly signatures.

SYNTAX

Content (Default)

Compare-HtmlStaticRendered -StaticContent <string> -RenderedContent <string> [-BaseUrl <uri>] [<CommonParameters>]

File

Compare-HtmlStaticRendered -StaticPath <string> -RenderedPath <string> [-BaseUrl <uri>] [<CommonParameters>]

Url

Compare-HtmlStaticRendered -Url <uri> [-BaseUrl <uri>] [-Browser <HtmlBrowserEngine>] [-Clean] [-Visible] [-Timeout <int>] [-Proxy <string>] [-ProxyCredential <pscredential>] [-Credential <pscredential>] [-Username <string>] [-Password <string>] [-CancellationToken <CancellationToken>] [<CommonParameters>]

DESCRIPTION

Compares static HTML with browser-rendered HTML using parsing-friendly signatures.

EXAMPLES

EXAMPLE 1

Compare-HtmlStaticRendered -StaticContent $staticHtml -RenderedContent $renderedHtml

EXAMPLE 2

Compare-HtmlStaticRendered -StaticPath .\static.html -RenderedPath .\rendered.html

EXAMPLE 3

Compare-HtmlStaticRendered -Url https://example.org/app -Browser Chromium -Timeout 15000

PARAMETERS

-BaseUrl

Base URL used to resolve relative links in comparison signatures. Defaults to Url when downloading.

Type: Uri
Parameter Sets: Content, File, Url
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Browser

Browser engine used for rendered URL comparisons.

Type: HtmlBrowserEngine
Parameter Sets: Url
Aliases: None
Possible values: Chromium, Firefox, WebKit

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CancellationToken

Token used to cancel the browser-rendering operation.

Type: CancellationToken
Parameter Sets: Url
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Clean

Force re-download of browser runtimes before rendering.

Type: SwitchParameter
Parameter Sets: Url
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Credential

Credentials used when accessing authenticated pages.

Type: PSCredential
Parameter Sets: Url
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Password

Password for pages secured with basic authentication.

Type: String
Parameter Sets: Url
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Proxy

Proxy server address used when downloading and rendering by URL.

Type: String
Parameter Sets: Url
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProxyCredential

Credentials used with the proxy server.

Type: PSCredential
Parameter Sets: Url
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RenderedContent

Rendered HTML content after browser execution.

Type: String
Parameter Sets: Content
Aliases: None
Possible values:

Required: True
Position: named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-RenderedPath

Path to the browser-rendered HTML file.

Type: String
Parameter Sets: File
Aliases: None
Possible values:

Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-StaticContent

Original static HTML content before browser execution.

Type: String
Parameter Sets: Content
Aliases: None
Possible values:

Required: True
Position: named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-StaticPath

Path to the original static HTML file.

Type: String
Parameter Sets: File
Aliases: None
Possible values:

Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Timeout

Timeout in milliseconds for browser rendering operations.

Type: Int32
Parameter Sets: Url
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Url

URL of a page to download statically and render with a browser before comparing.

Type: Uri
Parameter Sets: Url
Aliases: Uri
Possible values:

Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Username

Username for pages secured with basic authentication.

Type: String
Parameter Sets: Url
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Visible

Show the browser instead of running headless.

Type: SwitchParameter
Parameter Sets: Url
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

  • System.String

OUTPUTS

  • HtmlTinkerX.HtmlStaticRenderedComparison
  • None