How to check if ReCaptcha v2 already solved

Support
  • Hello
    After when I'm trying to solve ReCaptcha v2 through third-party service I want to check if it's solved. For this i'm using "Javascript" module with condition
    if(grecaptcha.getResponse() !== '')
    {
    [[RECAPTCHA_SOLVED]] = true;
    } else {
    [[RECAPTCHA_SOLVED]] = false;
    }
    But i'm getting an error "ReferenceError: grecaptcha is not defined". If i'm trying to use same condition on this page opened in the Chromium DevTool everything works good. If I understand correctly "Javascript" module executes inside the browser then why grecaptcha object is not defined? Why is it happens or how can I check if ReCaptcha already solved in any other way?

    Thanks