diff --git a/src/crawler.ts b/src/crawler.ts index 160a6241..6cca7170 100644 --- a/src/crawler.ts +++ b/src/crawler.ts @@ -1120,7 +1120,7 @@ self.__bx_behaviors.selectMainBehavior(); try { const driverUrl = new URL(this.params.driver, import.meta.url); const Cls = (await import(driverUrl.href)).default; - this.driver = new Cls(); + this.driver = new Cls(this); } catch (e) { logger.warn(`Error importing driver ${this.params.driver}`, e); return;