How to read Captcha image using webdriver with Java

3,811 views
Skip to first unread message

Shashank Shekhar Tiwari

unread,
Nov 8, 2013, 7:02:40 AM11/8/13
to webd...@googlegroups.com
Hi 

Here i want to know that how to do read Captcha using either Selenium with Java.

For reference i attached the Captcha image.


Thanks.

CreateCaptcha.bmp

Aniket Gadre

unread,
Nov 8, 2013, 7:23:53 AM11/8/13
to webd...@googlegroups.com
If you are able to read Captcha it will defeat the purpose of having Captcha.. You cannot automate Captcha from UI atleast. 


--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/groups/opt_out.



--
Best Regards,
Aniket Gadre
Test Automation Lead
Amdocs , Pune.
E-add: aniket...@amdocs.com

Shashank Shekhar Tiwari

unread,
Nov 8, 2013, 7:31:35 AM11/8/13
to webd...@googlegroups.com
But 
How developers read this thing.????


--
You received this message because you are subscribed to a topic in the Google Groups "webdriver" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webdriver/9l4_TQbmEYg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webdriver+...@googlegroups.com.

Chris Merrill

unread,
Nov 8, 2013, 8:49:46 AM11/8/13
to webd...@googlegroups.com
On 11/8/2013 7:31 AM, Shashank Shekhar Tiwari wrote:
> But
> How developers read this thing.????

They don't....they already know what it says. The purpose of a CAPTCHA is to prevent
automation. You need to find a way to turn it off during testing...or you need to
know the answers ahead of time.

http://en.wikipedia.org/wiki/Captcha

>
> On Fri, Nov 8, 2013 at 5:53 PM, Aniket Gadre <anike...@gmail.com <mailto:anike...@gmail.com>> wrote:
>
> If you are able to read Captcha it will defeat the purpose of having Captcha.. You cannot
> automate Captcha from UI atleast.
>
>
> On Fri, Nov 8, 2013 at 5:32 PM, Shashank Shekhar Tiwari <techsha...@gmail.com
> <mailto:techsha...@gmail.com>> wrote:
>
> Hi
>
> Here i want to know that how to do read Captcha using either Selenium with Java.
>
> For reference i attached the Captcha image.
>
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups "webdriver" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> webdriver+...@googlegroups.com <mailto:webdriver%2Bunsu...@googlegroups.com>.
>
> To post to this group, send email to webd...@googlegroups.com
> <mailto:webd...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/webdriver.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
> --
> Best Regards,
> Aniket Gadre
> Test Automation Lead
> Amdocs , Pune.
> E-add: aniket...@amdocs.com <mailto:aniket...@amdocs.com>
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "webdriver"
> group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/webdriver/9l4_TQbmEYg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> webdriver+...@googlegroups.com <mailto:webdriver%2Bunsu...@googlegroups.com>.
> To post to this group, send email to webd...@googlegroups.com <mailto:webd...@googlegroups.com>.
> Visit this group at http://groups.google.com/group/webdriver.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
> --
> You received this message because you are subscribed to the Google Groups "webdriver" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> webdriver+...@googlegroups.com.
> To post to this group, send email to webd...@googlegroups.com.
> Visit this group at http://groups.google.com/group/webdriver.
> For more options, visit https://groups.google.com/groups/opt_out.


--
------------------------------------------------------------------------ -
Chris Merrill | Web Performance, Inc.
ch...@webperformance.com | http://webperformance.com
919-433-1762 | 919-845-7601

Web Performance: Website Load Testing Software & Services
------------------------------------------------------------------------ -

Aniket Gadre

unread,
Nov 8, 2013, 10:34:52 AM11/8/13
to webd...@googlegroups.com

For testing purpose u can ask developers to name the image file with the text of captcha...you can fetch file name attribute at runtime and use the same value. This is one of the options, there can be many more.

darrell

unread,
Nov 9, 2013, 11:04:56 PM11/9/13
to webd...@googlegroups.com
Search this group for 'captcha'. This topic comes up again and again. You would typically put a backdoor in. I would have a config setting. If the setting is blank only the captcha image would work. If the config setting is "bypass" then you can answer the captcha using the image *OR* "bypass". This way during testing you set the config and use the bypass. When it goes to production you leave the config blank.

darrell

unread,
Nov 9, 2013, 11:09:30 PM11/9/13
to webd...@googlegroups.com
If you successfully convince the developers to do this, fail the captcha. This might fool some people but hundreds of people would figure this out and bypass the captcha.
Reply all
Reply to author
Forward
0 new messages