diff --git a/src/component/CaptchaComp.js b/src/component/CaptchaComp.js index 8bd383c..7452f60 100644 --- a/src/component/CaptchaComp.js +++ b/src/component/CaptchaComp.js @@ -32,7 +32,7 @@ class CaptchaComp { } isCaptchaPage(html) { - return html.indexOf('grecaptcha') > -1 || html.indexOf('www.google.com/recaptcha/api2/anchor') > -1 + return html.indexOf('hcaptcha') > -1 || html.indexOf('www.google.com/recaptcha/api2/anchor') > -1 } getUrl(params) { @@ -61,7 +61,7 @@ class CaptchaComp { } requestResolve(driver) { - return driver.findElement(By.css('#grecaptcha iframe')).getAttribute('src') + return driver.findElement(By.css('#hcaptcha iframe')).getAttribute('src') .then(src => url.parse(src, true).query.k) .then(googlekey => { return driver.getCurrentUrl().then(pageurl => {