Set-HtmlBrowserChecked
August 3, 2026 ยท View on GitHub
SYNOPSIS
Cmdlet that sets the checked state of a checkbox or radio button.
SYNTAX
__AllParameterSets
Set-HtmlBrowserChecked [[-Session] <HtmlBrowserSession>] [-Selector] <string> [-Uncheck] [-Timeout <int>] [-PassThru] [-OnFailureEvidence] [-FailureEvidenceFolder <string>] [-CancellationToken <CancellationToken>] [<CommonParameters>]
DESCRIPTION
Cmdlet that sets the checked state of a checkbox or radio button.
EXAMPLES
EXAMPLE 1
Set-HtmlBrowserChecked -CancellationToken 'Value'
PARAMETERS
-CancellationToken
Token used to cancel the operation.
Type: CancellationToken
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-FailureEvidenceFolder
Root folder where failure evidence is written when OnFailureEvidence is used.
Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-OnFailureEvidence
Export screenshots, HTML, text, Markdown, network summary, locator suggestions, and failure context if setting checked state fails.
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PassThru
Return the session object.
Type: SwitchParameter
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Selector
CSS selector of the element.
Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Session
Existing browser session.
Type: HtmlBrowserSession
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Timeout
Timeout in milliseconds.
Type: Int32
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Uncheck
Uncheck the element instead of checking it.
Type: SwitchParameter
Parameter Sets: __AllParameterSets
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
HtmlTinkerX.HtmlBrowserSession
OUTPUTS
HtmlTinkerX.HtmlBrowserSession
RELATED LINKS
- None