Functions/Get-Puppeteer_Delay.ps1
<#
.SYNOPSIS This function returns the Node JS Puppeteer code for delaying for a specified amount of time. #> function Get-Puppeteer_Delay { [CmdletBinding(PositionalBinding=$true)] [OutputType([String])] param ( # The amount of delay in milliseconds [Parameter(Mandatory=$true)] [ValidateNotNull()] [Int32]$milliseconds ) return "await delay($($milliseconds));" } |