change log format
This commit is contained in:
@@ -72,7 +72,7 @@ class SeleniumBrowser {
|
||||
let requestUrl = new url.URL('https://2captcha.com/in.php')
|
||||
requestUrl.search = new url.URLSearchParams(captcha2Params).toString();
|
||||
fetch(requestUrl).then(res => res.json()).then(res => {
|
||||
logger.info('2captcha IN-request response : %j', res)
|
||||
logger.debug(res, '2captcha IN-request response')
|
||||
if (!res.hasOwnProperty('request')) {
|
||||
throw new Error('2captcha IN-request response has no data request id : ' + JSON.stringify(res))
|
||||
}
|
||||
@@ -84,7 +84,7 @@ class SeleniumBrowser {
|
||||
} while (res.request == 'CAPCHA_NOT_READY')
|
||||
return res
|
||||
}).then(res => {
|
||||
logger.info('2captcha solved : %j', res)
|
||||
logger.debug(res, '2captcha solved')
|
||||
// this.driver.findElement(By.css('#g-recaptcha-response')).setAttribute('innerHTML', res.request)
|
||||
this.driver.executeScript('captchaCallback("' + res.request + '")')
|
||||
this.driver.wait(10000).then(d => {
|
||||
|
||||
Reference in New Issue
Block a user