0

This is the website I am implementing on: https://dashboard.easyleadz.com/elogin

While I enter the following in the console

document.querySelector('[name="g-recaptcha-response"]').style.display = "block";

Block

it outputs 'block' and a block does appear on the page.

After this, I need to input the captcha value (which seems to be working in the console) into the text box and submit it to resolve the captcha using 2captcha's API.

Refer to the docs

I am using Selenium and Python to execute this script.

Full Code: https://raw.githubusercontent.com/ysfnxt/ReverseLookup/main/recaptcha.py

driver.execute_script("""document.querySelector(
'[name="g-recaptcha-response"]').style.display = "block";""")


driver.execute_script("""document.getElementById(
'g-recaptcha-response').value='{}'.format(final_request_solution)""")

And this is the error message I get when I run the script.

error message

Please help.

yusuf
  • 64
  • 2
  • I posted [an answer](https://stackoverflow.com/questions/76455575/unable-to-resolve-recaptcha-v2-using-selenium-for-python/76461911#76461911) for the exact same website yesterday so see if that solves your issue first. – pguardiario Jun 13 '23 at 23:27
  • Hi, Thank you for your response. That did not work. – yusuf Jun 14 '23 at 03:47

0 Answers0