From 130f59a7c9882fd714b0549cbcaf16b44e74d896 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 21 Aug 2024 05:24:41 +0530 Subject: [PATCH] feat: disable ad blocker --- maxun-core/src/interpret.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maxun-core/src/interpret.ts b/maxun-core/src/interpret.ts index f314ae26..994346ea 100644 --- a/maxun-core/src/interpret.ts +++ b/maxun-core/src/interpret.ts @@ -95,6 +95,13 @@ export default class Interpreter extends EventEmitter { } } + private async disableAdBlocker(page: Page): Promise { + if (this.blocker) { + await this.blocker.disableBlockingInPage(page); + } +} + + /** * Returns the context object from given Page and the current workflow.\ * \