| external help file | Pup.dll-Help.xml |
|---|---|
| Module Name | Pup |
| online version | |
| schema | 2.0.0 |
Replays recorded browser interactions on a page.
Invoke-PupRecording -Page <PupPage> -Recording <PupRecordingEvent[]> [-Delay <Int32>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Replays an array of recorded events on the specified page. Events are obtained from Get-PupRecording and can include clicks, typing, navigation, scrolling, and key presses. Duplicate and redundant events are automatically filtered out during replay. Use -Delay to add a fixed pause between each action.
Start-PupRecording -Page $page
# ... interact with the browser ...
Stop-PupRecording -Page $page
$recording = $page | Get-PupRecording
$page | Invoke-PupRecording -Recording $recording
Records browser interactions and replays them on the same page.
$recording = $page | Get-PupRecording -IncludeWaits
$page | Invoke-PupRecording -Recording $recording
Includes wait events based on the actual timing between actions during recording, preserving the original pace.
$recording = $page | Get-PupRecording
$page | Invoke-PupRecording -Recording $recording -Delay 200
Adds a 200ms pause between each replayed action.
$recording = $page1 | Get-PupRecording
$page2 = New-PupPage -Browser $browser -Url "https://example.com" -WaitForLoad
$page2 | Invoke-PupRecording -Recording $recording
Replays interactions recorded on one page onto a different page.
Fixed delay between actions in milliseconds (default 0)
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalsePage to replay recording on
Type: PupPage
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseRecording events to replay (from Get-PupRecording)
Type: PupRecordingEvent[]
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.