Revert "feat(scrape): scroll down/up with actions if fullpagescreenshot"
This reverts commit 815bfc8f07
.
This commit is contained in:
parent
815bfc8f07
commit
e1a34b0a99
|
@ -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 ?? []),
|
||||
],
|
||||
}) : ({
|
||||
|
|
Loading…
Reference in New Issue