So let's just go easy on the guy!

It's not an entirely unreasonable request, and not really up to us to judge
it. It may well be legit!

Depending on the quality of the CAPTCHA it may in fact be possible. But
you'd probably have to wrap in an OCR library with some image processing (to
TIFF) beforehand.

For image processing I'd recommend rmagick[1].
For OCR you could look at gocr[2], ocrad[3] or tesseract[4]

[1] http://rmagick.rubyforge.org/
[2] http://jocr.sourceforge.net/
[3] http://www.gnu.org/software/ocrad/
[4] http://code.google.com/p/tesseract-ocr/

Good luck with that!



Cheers,
Tim


On Wed, Feb 23, 2011 at 8:07 PM, Chuck van der Linden <[email protected]>wrote:

> THERE IS NO SUCH GEM.
>
> NO.  HELL NO. and a Thousand Times I tell you NO.
>
> The purpose of a captcha is a challenge to prove that it is a human at
> the computer, to prevented scripted attacks on the site from spammers
> and the like.  The site cannot tell a scripted interaction from a
> tester from a scripted interaction from a spammer or other attacker.
>
> if the client needs you to test against production then you need to
> test pages with a captcha manually, or they would need to temporarily
> disable the captcha for the duration of the test, or set it to use a
> fixed answer for the duration of the test.
>
> You CANNOT script against a working captcha without a human in the
> loop.  That's the design and purpose of a captcha.  And if you somehow
> found a way to do that, then the client needs a better quality
> captcha, because if you can figure out a way, so will the spammers.
>
> NOBODY who isn't a spammer is likely to develop a means to get around
> captchas because we know it would then be immediately discovered and
> used BY spammers, and nobody wants to help spammers.  Nobody here is
> going to help YOU do the same thing for the same reason, even if you
> are not a spammer, one could come along later and read the answer.
> stop trying to go there.
>
> Likewise, there is no way for the site to know your scripted
> interaction (against a production site) is 'safe' that would not
> potentially be used or exploited by spammers.. so I strongly
> discourage anything along those lines as it would just be introducing
> a chink in the sites defenses that could later be exploited to attack
> the site.
>
> If your client is asking you to write scripting against pages with
> captchas, point out to them that this is a bit like asking you to move
> an object they designed to be immovable.
>
> On Feb 22, 9:15 am, Aditya <[email protected]> wrote:
> > A good idea already thinking the same. But the client needs on production
> > environment too. So do we have any gem atleast once the page is loaded
> can
> > we get the value after page is displayed? Any idea ?
> >
> >
> >
> > On Tue, Feb 22, 2011 at 7:36 PM, Basim Baassiri <[email protected]>
> wrote:
> > > I've had a similar problem in automating a signup page that had a
> captcha
> > > on it.
> >
> > > I solved it by implementing in the production code to detect the test
> > > environment and when the test environment was evaluated the captcha was
> > > hardcoded to QAQA and hence i used that string to proceed with the
> signup
> > > page
> >
> > > Hopefully that can help you
> >
> > > On Tue, Feb 22, 2011 at 5:30 AM, Aditya <[email protected]> wrote:
> >
> > >> Thanks for the valuable information.
> >
> > >> Can i use rmagick gem in order to validate the captcha?
> > >>  and can i use it in watir?
> >
> > >> On Tue, Feb 22, 2011 at 3:50 PM, Željko Filipin <
> > >> [email protected]> wrote:
> >
> > >>> On Tue, Feb 22, 2011 at 11:17 AM, Aditya <[email protected]>
> wrote:
> > >>> > How do we handle in terms of automation?
> >
> > >>> Captchas are made explicitly so they could not be automated.
> >
> > >>> If I had to automate site that used Captcha, I would test them
> manually.
> >
> > >>> Željko
> >
> > >>> --
> > >>> Before posting, please readhttp://watir.com/support. In short:
> search
> > >>> before you ask, be nice.
> >
> > >>> [email protected]
> > >>>http://groups.google.com/group/watir-general
> > >>> [email protected]
> >
> > >>  --
> > >> Before posting, please readhttp://watir.com/support. In short: search
> > >> before you ask, be nice.
> >
> > >> [email protected]
> > >>http://groups.google.com/group/watir-general
> > >> [email protected]
> >
> > >  --
> > > Before posting, please readhttp://watir.com/support. In short: search
> > > before you ask, be nice.
> >
> > > [email protected]
> > >http://groups.google.com/group/watir-general
> > > [email protected] Hide quoted text -
> >
> > - Show quoted text -
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to