Merge pull request #517 from getmaxun/scroll-fix
fix: remove page timeout for pagination
This commit is contained in:
@@ -663,10 +663,7 @@ export default class Interpreter extends EventEmitter {
|
||||
let availableSelectors = config.pagination.selector.split(',');
|
||||
|
||||
try {
|
||||
while (true) {
|
||||
// Reduced timeout for faster performance
|
||||
await page.waitForLoadState('networkidle', { timeout: 10000 }).catch(() => {});
|
||||
|
||||
while (true) {
|
||||
switch (config.pagination.type) {
|
||||
case 'scrollDown': {
|
||||
await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight));
|
||||
|
||||
Reference in New Issue
Block a user