feat: rm page timeout for pagination
This commit is contained in:
@@ -664,9 +664,6 @@ export default class Interpreter extends EventEmitter {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
while (true) {
|
while (true) {
|
||||||
// Reduced timeout for faster performance
|
|
||||||
await page.waitForLoadState('networkidle', { timeout: 10000 }).catch(() => {});
|
|
||||||
|
|
||||||
switch (config.pagination.type) {
|
switch (config.pagination.type) {
|
||||||
case 'scrollDown': {
|
case 'scrollDown': {
|
||||||
await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight));
|
await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight));
|
||||||
|
|||||||
Reference in New Issue
Block a user