nyck_de_vries
New member
I cannot figure out how to solve a captchav2 with Selenium.
I picked for testing the Spotify (spotify.com/us/signup) website.
I inject the token inside the HTML and I call the callback function which I retrived typing ___grecaptcha_cfg.clients['0'] in the Chrome Dev Console.
This is my code. But when i submit the form after this code, the captcha is not solved.
The error in the console is HTTP 400.
I picked for testing the Spotify (spotify.com/us/signup) website.
I inject the token inside the HTML and I call the callback function which I retrived typing ___grecaptcha_cfg.clients['0'] in the Chrome Dev Console.
This is my code. But when i submit the form after this code, the captcha is not solved.
The error in the console is HTTP 400.
Java:
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("document.getElementById(\"g-recaptcha-response\").innerHTML=\"" + tokenID + "\";");
threadSleep();
js.executeScript("___grecaptcha_cfg.clients['0']['I']['I']['callback']('" + tokenID + "')");
Attachments
Last edited by a moderator: