diff --git a/bin/browser.cjs b/bin/browser.cjs index 14e719e7..2a5b2d10 100644 --- a/bin/browser.cjs +++ b/bin/browser.cjs @@ -379,7 +379,7 @@ const callChrome = async pup => { } if (request.options.waitForSelector) { - await page.waitForSelector(request.options.waitForSelector, request.options.waitForSelectorOptions ?? undefined); + await page.waitForSelector(request.options.waitForSelector, request.options.waitForSelectorOptions ? request.options.waitForSelectorOptions : undefined); } console.log(await getOutput(request, page));