| external help file | Pup.dll-Help.xml |
|---|---|
| Module Name | Pup |
| online version | |
| schema | 2.0.0 |
Navigates the page back in history.
Invoke-PupPageBack -Page <PupPage> [-WaitForLoad] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Simulates clicking the browser back button. Navigates to the previous page in the browsing history.
Invoke-PupPageBack -Page $page -WaitForLoad
Navigates back and waits for the page to load.
# Submit a form, then go back to check if data persists
Invoke-PupPageBack -Page $page -WaitForLoad
$input = Find-PupElements -Page $page -Selector "#username" -First
$input.Value # Check if form data is still there
Tests form data persistence across back navigation.
The page to navigate back
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: FalseWait for page to load after navigation
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
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.