dsfsdf
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
const logger = require("logops")
|
const logger = require("logops")
|
||||||
, config = require('../../config')
|
, config = require('../../config')
|
||||||
, { Builder, Capabilities, By, Key, until } = require('selenium-webdriver')
|
, { Builder, Capabilities, By, Key, until } = require('selenium-webdriver')
|
||||||
|
, proxy = require('selenium-webdriver/proxy')
|
||||||
, url = require('url')
|
, url = require('url')
|
||||||
, fetch = require('node-fetch')
|
, fetch = require('node-fetch')
|
||||||
, { Options } = require('selenium-webdriver/chrome');
|
, { Options } = require('selenium-webdriver/chrome');
|
||||||
@@ -19,6 +20,7 @@ class SeleniumBrowser {
|
|||||||
return new Builder()
|
return new Builder()
|
||||||
.usingServer('http://spiduler-chrome:4444/wd/hub')
|
.usingServer('http://spiduler-chrome:4444/wd/hub')
|
||||||
.withCapabilities(this.capabilities)
|
.withCapabilities(this.capabilities)
|
||||||
|
.setProxy(proxy.manual({http: 'spiduler-tor:8118'}))
|
||||||
.forBrowser(this.config.browser)
|
.forBrowser(this.config.browser)
|
||||||
.setChromeOptions(opts)
|
.setChromeOptions(opts)
|
||||||
.build();
|
.build();
|
||||||
|
|||||||
Reference in New Issue
Block a user