Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

557
Views
H-Captcha, no se puede completar el token en h-captcha-response innerHTML y g-recaptcha-response innerHTML

Estoy tratando de evitar un Hcaptcha con 2captcha gracias a Selenium y 2captcha en Python.

Cuando recibo mi token 2captcha, trato de completar mi token en ambas áreas de texto llamadas 'h-captcha-response' y 'g-captcha-response'

Pero no funciona.

Ambas áreas de texto tienen identificadores con el patrón "h-captacha-[ID]" y "g-recaptacha-[ID]"

Mi problema es: tan pronto como quiero llenar el HTML interno de las áreas de texto, me devuelve un error porque no puedo obtener los 2 elementos correctamente

 driver.execute_script(''' let [captcha] = arguments[document.querySelectorAll('[name="h-captcha-response"], [name="g-recaptcha-response"]')].map(el => { el.innerHTML = captcha})''', code)

¿Sabes por qué mi comando driver.execute_script no funciona? El código es el token bueno para el captcha, necesito enviarlo en las 2 áreas de texto.

aquí está el error

selenium.common.exceptions.JavascriptException: Mensaje: error de javascript: no se pueden leer las propiedades de undefined (leyendo 'mapa')

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!