[C#] Need help with Funcaptcha in Selenium C# app

I need abit of help.

I am making a selenium tool in c# and am trying to solve funcaptcha with 2captcha api
(specifically the one on [REDACTED] signup page).

Heres the issue, once i set the token/answer how do i submit the form with the captcha info?

has anyone worked with funcaptcha in selenium c# before? please help me…

Assuming you have a WebDriver (e.g. a ChromeDriver) called driver and a string variable called token, you can do

var expression = $"document.getElementById('g-recaptcha-response').innerHTML = '{token}'";
driver.ExecuteScript(expression);

And then simply submit the form as usual.

I do not think you are allowed to mention a site here.

1 Like