How to run JavaScript function in browser console?


In my Python program, I need to run the hcaptchaCallback function (screenshot), but the function name has a different numbers each time. Can I somehow run this function by specifying only the first part of the name (hcaptchaCallback)?


>Solution :

There is nothing that lets you really do that. You might be able to pull off looping over the globals and looking for a variable that starts with your string.


that will call it the way you showed, but looking at the function signature, looks like you are going to have to use call()

Leave a Reply Cancel reply