How to find the callback function of each version of reCaptcha
recaptcha callback function
After obtaining the successfully recognized gRecaptchaResponse value through the API, if you are using simulation software, such as selenium, you need to execute a callback function to tell the webpage that we have successfully recognized, so let's learn how to find this function:
Note: In some cases, there is indeed no callback function. In this case, you can directly assign values to the g-recaptcha-response container and submit the form.
Search by automatic search function
Press F12 to enter the Console, and enter the following auto-defined function findRecaptchaClients()
Then execute this function findRecaptchaClients() in console to find the corresponding function
Case 1: If the value of the function returns a string value
funtion is "verifyDemoRecaptcha"
As you can see, our callback function here is verifyDemoRecaptcha, and then we only need to execute this function in selenium.