- Регистрация
- 03.11.2011
- Сообщения
- 124
- Благодарностей
- 9
- Баллы
- 18
Hi,
After getting token from "Recognizing Recaptcha3" action, I'm trying to use veryfication snippet (form here: https://zennolab.com/wiki/en:addons:capmonster:rc3#working-with-token), but I'm not sure if I'm doing it correctly, below is code with binded project variables:
I will be grateful for checking and finding what could be wrong, because I have no success to go through website secured with recaptcha v3.
After getting token from "Recognizing Recaptcha3" action, I'm trying to use veryfication snippet (form here: https://zennolab.com/wiki/en:addons:capmonster:rc3#working-with-token), but I'm not sure if I'm doing it correctly, below is code with binded project variables:
Код:
var sitekey = project.Variables["siteKey"].Value ; //SiteKey
string newToken = project.Variables["recaptcha_token"].Value ; //New Token
string replaceRegex = @"(?<=\[""rresp"","").*?(?="")";
instance.ChangeResponse("https://www.google.com/recaptcha/api2/reload\\?k="+sitekey,
new List<string> {replaceRegex}, new List<string> {newToken}, false);
project.Variables["recaptcha_token"].Value = newToken ; //New Token