使用硒处理验证码 [英] Captcha handling using Selenium

查看:73
本文介绍了使用硒处理验证码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试自动化一种形式,在这种形式下,我将重新提交Captcha作为表单提交的一部分.我陷入困境,弄清楚我们如何使用硒webdriver处理验证码文本.尽管此验证码正在实时测试测试实施,但是,我仍然在寻找某种方式来处理这种情况.

I am trying to automate one form where I get re-Captcha as a part of form submission. I got stuck and figuring out that how can we handle the captcha text using selenium webdriver. Though this captcha is turing test implementation in realtime but, still I am finding some way so that I can handle this scenario.

推荐答案

所以您不能真正做到这一点,验证码的定义是破坏您的自动化.也就是说,我在使用 Tesseract OCR 时有些运气,但我正在处理简单的只包含数字的数字.在执行此操作的同时,我还研究了一些基于javascript的解决方案,但这些都无法取得任何成功.我认为值得一试,但很可能您不走运

So you can't really do that, captcha is by definition meant to break your automation. That said, I have had some luck using Tesseract OCR, but I was dealing with rather simplistic ones that contained only numbers. While I was doing that, I also looked into some javascript based solutions, but I was unable to achieve any success with those. I think it is worth giving a try, but most probably you are out of luck

这篇关于使用硒处理验证码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆