def METHOD_NAME(self):
    action, inputs = self.parse_html_form("id='form-captcha'")
    if inputs is None:
        self.fail(self._("Captcha form not found"))
    else:
        recaptcha = ReCaptcha(self.pyfile)
        captcha_key = recaptcha.detect_key()
        if captcha_key:
            self.captcha = recaptcha
            response = recaptcha.challenge(captcha_key)
            inputs["g-recaptcha-response"] = response
        else:
            hcaptcha = HCaptcha(self.pyfile)
            captcha_key = hcaptcha.detect_key()
            if captcha_key:
                self.captcha = hcaptcha
                response = hcaptcha.challenge(captcha_key)
                inputs["g-recaptcha-response"] = inputs["h-captcha-response"] = response
        if captcha_key:
            self.data = self.load(self.free_url, post=inputs, ref=self.free_url)
        else:
            self.fail(self._("Could not detect captcha type"))