Example #1
0
        public static WatiN_IE resolveCaptcha(this WatiN_IE watinIe, string questionField, string answerField)
        {
            var questionUrl = watinIe.textField(questionField).value();

            if (questionUrl.valid())
            {
                var captchaAnswer = watinIe.resolveCaptcha(questionUrl);
                watinIe.textField(answerField).value(captchaAnswer);
            }
            return(watinIe);
        }
Example #2
0
 public static string resolveCaptcha(this WatiN_IE watinIe, TextField textField)
 {
     return(watinIe.resolveCaptcha(textField.value()));
 }