sdfsdf
This commit is contained in:
@@ -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']
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user