sdfdf
This commit is contained in:
@@ -69,7 +69,10 @@ class CaptchaComp {
|
||||
|
||||
requestResolve(driver) {
|
||||
return driver.findElement(By.css('#hcaptcha iframe')).getAttribute('src')
|
||||
.then(src => url.parse(src, true).query.k)
|
||||
.then(src => {
|
||||
let googlekey = url.parse(src, true).query.k
|
||||
if (!googlekey) logger.throwError('Googlekey not found', { src: src })
|
||||
})
|
||||
.then(googlekey => {
|
||||
return driver.getCurrentUrl().then(pageurl => {
|
||||
return this.request({ googlekey: googlekey, pageurl: pageurl }).then(res => {
|
||||
|
||||
Reference in New Issue
Block a user