Find the callback function of reCaptcha
How to find the callback function of each version of reCaptcha
Last updated
How to find the callback function of each version of reCaptcha
Last updated
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.
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
function
returns a string valueAs you can see, our callback function here is verifyDemoRecaptcha
, and then we only need to execute this function in selenium.
function
returns a functionFor this kind of anonymous function, we only need to execute it according to the complete path we just found, and the effect is the same, for example:
We can test this case on the website:
We can test this case on the website:
funtion
is "verifyDemoRecaptcha"function
is funtion