Esempio n. 1
0
        public static Rectangle GethCaptchaChallengeRectangle(this IBrowser Browser)
        {
            var Result = Browser.EvaluateScript <string>(Properties.Resources.hCaptchaGetChallengeFramePosition);
            int X      = int.Parse(DataTools.ReadJson(Result, "x").Split('.', ',')[0]);
            int Y      = int.Parse(DataTools.ReadJson(Result, "y").Split('.', ',')[0]);
            int Width  = int.Parse(DataTools.ReadJson(Result, "width").Split('.', ',')[0]);
            int Height = int.Parse(DataTools.ReadJson(Result, "height").Split('.', ',')[0]);

            return(new Rectangle(X, Y, Width, Height));
        }
Esempio n. 2
0
 public static void ReCaptchaReset(this IBrowser Browser)
 {
     Browser.EvaluateScript(Properties.Resources.reCaptchaReset);
 }
Esempio n. 3
0
 public static void hCaptchaReset(this IBrowser Browser) => Browser.EvaluateScript(Properties.Resources.hCaptchaReset);
Esempio n. 4
0
 public static bool hCaptchaIsSolved(this IBrowser Browser)
 {
     return(Browser.EvaluateScript <bool>(Properties.Resources.hCaptchaIsSolved));
 }