Revert "feat(scrape): scroll down/up with actions if fullpagescreenshot"

This reverts commit 815bfc8f07.
This commit is contained in:
Gergő Móricz 2024-09-20 21:43:22 +02:00
parent 815bfc8f07
commit e1a34b0a99
1 changed files with 0 additions and 16 deletions

View File

@ -210,26 +210,10 @@ export async function scrapSingleUrl(
type: "wait" as const,
milliseconds: pageOptions.waitFor,
}] : []),
...(pageOptions.fullPageScreenshot ? [
{
type: "scroll" as const,
direction: "down" as const,
},
{
type: "wait" as const,
milliseconds: 300,
},
] : []),
...((pageOptions.screenshot || pageOptions.fullPageScreenshot) ? [{
type: "screenshot" as const,
fullPage: !!pageOptions.fullPageScreenshot,
}] : []),
...(pageOptions.fullPageScreenshot ? [
{
type: "scroll" as const,
direction: "up" as const,
}
] : []),
...(pageOptions.actions ?? []),
],
}) : ({