Closed pythonreactor closed 4 years ago
I am going to close this. I went back into the source code of the site and found they are using a function as a callback for verification...
I saw that they are using a function called solvedCaptcha
and injecting a variable name payload
. So here is how I solved it:
NOTE: Make sure the driver is currently on the reCAPTCHA page.
driver.execute_async_script("var payload = '<enter the job.get_solution_response() here>'; solvedCaptcha(payload);")
This async script then calls the page's verification and it reloads the blocked window.
I am struggling with the realtor.com recaptcha.
I am using selenium and would like to run headless, but I can't, because I can't get the recaptcha to submit.
I have followed your example and everything works great, up until the point that I must submit the captcha. It is one of those ones where you can only click the verify button after selecting all of the photos.
How might I submit my recaptcha to be validated once I have populated the textarea with the job.get_solutions_response() ??
Thanks