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";
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.
Please help.