This commit is contained in:
brow3c
2021-06-07 20:55:30 +09:00
parent ba64a18e18
commit 7ee8c2c9a0
2 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ class NavigateService {
constructor() { constructor() {
this.config = { this.config = {
browser: 'chrome', browser: 'chrome',
hub: 'http://spiduler-chrome:4444/wd/hub', hub: 'http://bro-chrome:4444/wd/hub',
capabilities: Capabilities.chrome(), capabilities: Capabilities.chrome(),
browserArgs: ['--no-sandbox', '--headless', '--disable-dev-shm-usage'] browserArgs: ['--no-sandbox', '--headless', '--disable-dev-shm-usage']
} }

View File

@@ -10,7 +10,7 @@ class PoolingService {
this.config = { this.config = {
pool: { max: 10, min: 1, testOnBorrow: true }, pool: { max: 10, min: 1, testOnBorrow: true },
browser: 'chrome', browser: 'chrome',
browserArgs: ['--no-sandbox', '--headless', '--disable-dev-shm-usage', '--proxy-server=spiduler-tor:8118'] browserArgs: ['--no-sandbox', '--headless', '--disable-dev-shm-usage', '--proxy-server=bro-tor:8118']
} }
this.pool = this.createPool() this.pool = this.createPool()
} }
@@ -68,7 +68,7 @@ class PoolingService {
let capabilities = Capabilities.chrome() let capabilities = Capabilities.chrome()
opts.addArguments(this.config.browserArgs) opts.addArguments(this.config.browserArgs)
return new Builder() return new Builder()
.usingServer('http://spiduler-chrome:4444/wd/hub') .usingServer('http://bro-chrome:4444/wd/hub')
.withCapabilities(capabilities) .withCapabilities(capabilities)
.forBrowser(this.config.browser) .forBrowser(this.config.browser)
.setChromeOptions(opts) .setChromeOptions(opts)