This commit is contained in:
spiduler
2020-10-26 10:58:34 +09:00
parent 1aea5e721f
commit 443a568a86
2 changed files with 2 additions and 2 deletions

View File

@@ -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 => {

View File

@@ -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']
}