|
|
|
@ -3,6 +3,7 @@ import fs from 'node:fs';
@@ -3,6 +3,7 @@ import fs from 'node:fs';
|
|
|
|
|
import path from 'node:path'; |
|
|
|
|
import { fileURLToPath } from 'url'; |
|
|
|
|
import ClientLogPlugin from '../plugin/ClientLogPlugin.mjs'; |
|
|
|
|
import common from '../lib/common.mjs'; |
|
|
|
|
|
|
|
|
|
class HeroBot { |
|
|
|
|
constructor(heroCloudServer) { |
|
|
|
@ -34,12 +35,10 @@ class HeroBot {
@@ -34,12 +35,10 @@ class HeroBot {
|
|
|
|
|
let options = { |
|
|
|
|
userAgent: configs.userAgent, |
|
|
|
|
viewport: configs.viewport, |
|
|
|
|
showChrome: configs.showChrome, |
|
|
|
|
showChromeInteractions: configs.showChromeInteractions, |
|
|
|
|
showDevtools: configs.showDevtools, |
|
|
|
|
showChromeAlive: configs.showChromeAlive, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
options = common.mergeConfigs(configs.botOptions, options); |
|
|
|
|
|
|
|
|
|
if (this.heroServer) { |
|
|
|
|
options.connectionToCore = this.heroServer; |
|
|
|
|
} |
|
|
|
|