Captcha word verification

20 views
Skip to first unread message

jignesh

unread,
Aug 25, 2009, 12:54:50 AM8/25/09
to Selenium - Automated Software Testing
Hi,

I uses selenium to record test case for my long scrollable
registration page. I am having captcha word verification at the end of
the form.

how can i fill captha image word into text box of it ? Actually i
found the solution of it by taking user input with placing javascript
pop up code before it, but my problem is as i said before, it is the
long scrollable page so once commands are running, as soon as i am
going to read the captcha image it pop ups for it and i can not scroll
foreground page to read my captcha word, is there any solution to this
problem ?

Vinaykumar Patel

unread,
Aug 25, 2009, 11:55:38 PM8/25/09
to selenium-...@googlegroups.com
Hi,
Most of the people generate 10-20 (or such limited set) images and keep using it randomly as captcha. If your site is using limited set of image then  you can do mapping of image name with word typed in it. If this can not be implemented then halting system by asking user Input is good. My system has similar kind of problem and since I am using Selenium RC with Perl drives, I ask for user input in Perl script which keep the execution on hold till someone presses enter key in the execution console. 


-Vinaykumar Patel

jignesh

unread,
Aug 26, 2009, 12:24:36 AM8/26/09
to Selenium - Automated Software Testing
Thanks for your helpful reply,
Actually i did like this already, halt the execution for user to read
captcha image and enter it into browser pop up that i did using store
command with java script. My problem is that once pop up block opened
i can not scroll my registration page to read that captcha image that
resides at the end of my page and enter word into pop up block and
make execution continue. Is there any way(command) by which i can make
page focus on captha block ?

- Jignesh Patel

On Aug 26, 8:55 am, Vinaykumar Patel <vinaykumar...@gmail.com> wrote:
> Hi,Most of the people generate 10-20 (or such limited set) images and keep
> using it randomly as captcha. If your site is using limited set of image
> then  you can do mapping of image name with word typed in it. If this can
> not be implemented then halting system by asking user Input is good. My
> system has similar kind of problem and since I am using Selenium RC with
> Perl drives, I ask for user input in Perl script which keep the execution on
> hold till someone presses enter key in the execution console.
>
> -Vinaykumar Patel
>

Vinaykumar Patel

unread,
Aug 27, 2009, 12:10:53 AM8/27/09
to selenium-...@googlegroups.com
There are couple of ways.
1. If you are using Selenium RC then halt system from execution console and not the browser (i.e. In perl say <STDIN>;). But it seems that you are using selenium IDE.

2. This is generic solution and will work with IDE and RC. In case of selenium IDE you can pause the system for specific time using "pause". 

pause(waitTime)
Arguments:
  • waitTime - the amount of time to sleep (in milliseconds)
Wait for the specified amount of time (in milliseconds)


Thanks & Regards 
Vinaykumar Patel
Reply all
Reply to author
Forward
0 new messages