Getting the captcha displayed using Ruby Watir

296 views
Skip to first unread message

TCBlues

unread,
May 19, 2009, 1:36:49 PM5/19/09
to reCAPTCHA
Hi,
In my company we are thinking to use the reCaptcha in our registration
process on the website.
But the problem I see is when our Automated Tests run through the
website is necessary to get the captcha value to test the site
properly.
For Automation we are using Ruby. Is there any way to know the captcha
value in order to set the value automatically with Ruby Watir?

Thank you.

Kaolin Fire

unread,
May 19, 2009, 1:50:50 PM5/19/09
to reca...@googlegroups.com
I'd suggest using a mock-object for that.

--
-kaolin imago fire
-trying not to make EVERY sig about GUD Magazine
-http://www.erif.org/

TCBlues

unread,
May 20, 2009, 6:22:33 AM5/20/09
to reCAPTCHA
Sorry, what do you mean?

Paul Herring

unread,
May 20, 2009, 6:24:34 AM5/20/09
to reca...@googlegroups.com
On Wed, May 20, 2009 at 11:22 AM, TCBlues <TCB...@gmail.com> wrote:
>
> Sorry, what do you mean?

There is no way of knowing programatically what the captcha contains -
if there were, it would render the whole point of having it useless.

Instead, when testing, you replace the reCAPTCHA with something that
always returns 'true' (or whatever your application takes for a
correct answer.)

> On May 19, 5:50 pm, Kaolin Fire <kao...@erif.org> wrote:
>> I'd suggest using a mock-object for that.
>>

--
PJH

http://shabbleland.myminicity.com/com
http://www.chavgangs.com/register.php?referer=9375

Reply all
Reply to author
Forward
0 new messages