sdfdsf
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user