sdfsdf
This commit is contained in:
@@ -42,7 +42,7 @@ class SeleniumBrowser {
|
||||
getHtml(driver, html, params) {
|
||||
if (params.waitElements) {
|
||||
return driver.get(params.uri)
|
||||
.then(() => Promise.all(params.waitElements.map(s => driver.wait(until.elementLocated(By.css(s)), 10000))))
|
||||
.then(() => Promise.all(params.waitElements.map(s => driver.wait(until.elementLocated(By.css(s)), 20000))))
|
||||
.then(() => driver.findElement(By.css('body')))
|
||||
.then(body => body.getAttribute('innerHTML'))
|
||||
.then(html => {
|
||||
|
||||
@@ -7,7 +7,7 @@ const logger = require("logops")
|
||||
class PoolingService {
|
||||
constructor() {
|
||||
this.config = {
|
||||
pool: { max: 5, min: 1, testOnBorrow: true },
|
||||
pool: { max: 10, min: 1, testOnBorrow: true },
|
||||
browser: 'chrome',
|
||||
browserArgs: ['--no-sandbox', '--headless', '--disable-dev-shm-usage', '--proxy-server=spiduler-tor:8118']
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user