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)); }
public static void ReCaptchaReset(this IBrowser Browser) { Browser.EvaluateScript(Properties.Resources.reCaptchaReset); }
public static void hCaptchaReset(this IBrowser Browser) => Browser.EvaluateScript(Properties.Resources.hCaptchaReset);
public static bool hCaptchaIsSolved(this IBrowser Browser) { return(Browser.EvaluateScript <bool>(Properties.Resources.hCaptchaIsSolved)); }