Skip to content
This repository was archived by the owner on Feb 4, 2024. It is now read-only.
This repository was archived by the owner on Feb 4, 2024. It is now read-only.

What is the correct way to bypass reCaptcha in development environment #10

@blaiseliu

Description

@blaiseliu

I have a bool setting in Web.Config to decide if bypass would happen.

Then I copied your ActionFilter EasyGCaptcha and added these lines of code:

var isByPassed = Settings.Default.BypassCaptchaInDebugMode;
if (isByPassed)
{
    filterContext.ActionParameters["easyGCaptchaResult"] =
        new EasyGCaptchaResult {Date = DateTime.Now, GErrorCodes = null, Success = true};
    return;
}

Only to find out the EasyGCaptchaResult.Success is an internal get;.

In the extension, there is a property called UsePassthruInDebugMode. How to use it? Any documentation or example code?

What is your preferred way to bypass reCaptcha? I just need it for Selenium.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions