This commit is contained in:
NAME
2026-05-24 01:40:08 +00:00
parent 6d66ecb13e
commit 7af67c2056
+9
View File
@@ -490,6 +490,15 @@ export class XPwService implements OnModuleDestroy {
await page.waitForTimeout(10000); await page.waitForTimeout(10000);
this.logger.debug('✅ Reply OK'); 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: ''}; return {success: true, error: ''};
} catch (err) { } catch (err) {
this.logger.error(`Browser reply failed: ${err.message}`); this.logger.error(`Browser reply failed: ${err.message}`);