Update
This commit is contained in:
@@ -490,6 +490,15 @@ export class XPwService implements OnModuleDestroy {
|
||||
await page.waitForTimeout(10000);
|
||||
|
||||
this.logger.debug('✅ Reply OK');
|
||||
|
||||
// scroll nhẹ
|
||||
this.logger.debug(`scroll nhẹ ...`)
|
||||
await page.mouse.wheel(0, rand(300, 500));
|
||||
await page.waitForTimeout(rand(2000, 7000));
|
||||
await page.mouse.wheel(0, -200);
|
||||
|
||||
await page.goBack({waitUntil: 'domcontentloaded', timeout: 10000})
|
||||
|
||||
return {success: true, error: ''};
|
||||
} catch (err) {
|
||||
this.logger.error(`Browser reply failed: ${err.message}`);
|
||||
|
||||
Reference in New Issue
Block a user