Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can we automate CAPTCHAS through QTP?
#1
Solved: 11 Years, 4 Months, 2 Weeks ago
Hi Ankur, This is Venkat. I’m regular visitor of your blog. I’ve a query. While browsing on human validation I found Captcha image value in the view source of the page. Can we automate this one using QTP?
#2
Solved: 11 Years, 4 Months, 2 Weeks ago
One word answer- NO

Some points to support it:

  1. CAPTCHAS were primarily designed to prevent automated logins into the system.
  2. CAPTCHA values changes on every refresh of the page, so though you might find some hint of it in source you might not get the same value on script-run

In one condition, you might validate it, if you know all CAPTCHAS values present in the system. that ways you can store the values with the corresponding image in an array and check the image. If image match, use THAT value. This is not a perfect solution though, I would not recommend automating CAPTCHAS using QTP.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
#3
Solved: 11 Years, 4 Months, 2 Weeks ago
Ankur,
I agree with you. Values changes on every refresh of the page. I did some thing to capture the values in CAPCHAS.
Step1: Go through the http://displaybanner.com/ and navigate to user registration page.
Step2: Record the script for one user creation, when coming to human validation record please fallow the below steps:
* Navigate to page source under the view menu, find the human validation values and copy it and place it in the web text box.
* Stop recording.

When i run the same script in the view source page its showing another values.

So Can not we capture the values for every refresh of the page? Even if we do not know the values.

If i am wrong please correct me.

Thanks in Advance.
Venkatesh. g
*
#4
Solved: 11 Years, 4 Months, 2 Weeks ago
That is a one off case and I would say it's a case of poor design where the developers have exposed the CAPTCHA's value.
Try doing the same thing here... http://mail.google.com/mail/signup, you will not find anything(or perhaps some encoding) in source except the link to CAPTCHA image.

As for your question-- it is possible for the specific case shown given by you because the values are populated in innerHTML and innertext run time properties.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
#5
Solved: 11 Years, 4 Months, 2 Weeks ago
Yes, for Gamil and yahoo we can not find the values of CAPTCHAS in view source page.

Thanks,
Veanktesh. g
#6
Solved: 11 Years, 4 Months, 2 Weeks ago
Hi Venkatesh,
We can try below(Descriptive Programing) to get CAPTCHA.

Code:
Browser("Display Banner - Diversify").Page("Display Banner - Diversify").Image("Register - Custom Animated").Click
k=Browser("Display Banner - Diversify").Page("Display Banner - Diversify_2").WebElement("html tag:=FONT").GetROProperty("innertext")
msgbox k
Browser("Display Banner - Diversify").Page("Display Banner - Diversify_2").WebEdit("tcode").Set k
#7
Solved: 11 Years, 4 Months, 2 Weeks ago
Hi, about this action, I can propose the method of Motevich's:
+save the capcha image
+use OCR soft to recognize it
+run
It only work with the clearly capcha.^-^;others case we cannot(such as the capcha of rapidshare several months ago)

Please note it no good for trying to attach or destroy some website by this way!
#8
Solved: 11 Years, 4 Months, 2 Weeks ago
Hi, I am new to this forum...
Please let me know, if we have any workaround for this captcha automation?? If so, please explain or refer to where we can get substantial info
#9
Solved: 11 Years, 4 Months, 2 Weeks ago
Hi Ankur,
i have one querry regarding script.
I was trying to parametrize the value from datatable, i wrote like this

Code:
Dim AgentName
AgentName=Datatable.value("AgentName")
Dialog("Login").Winedit("AgentName:").Set datatable("Agent",dtClobalsheet)
When i run the script it was picking the value from datatable and result window was also displaying the value which was taken from the datatable, while it should display some error. Because i wrote dtClobalsheet rather then dtGlobalsheet.
Even i did not wrote Option Explicit.
Can you let me know why it happened?
#10
Solved: 11 Years, 4 Months, 2 Weeks ago
Hi rahul1234,

your query is not at all related to the original topic of thread.
always make sure your are posting under a thread which is relevant to your query or you are answering the thread query.
Please dont divert a thread with your new query.

You will need to create a new thread for the query.

as the original query has been answered, Thread is locked now.



Possibly Related Threads…
Thread Author Replies Views Last Post
  Can we automate installation testing using QTP uma.kasarla@gmail.com 0 943 06-21-2019, 09:45 PM
Last Post: uma.kasarla@gmail.com
  Can QTP automate VC++ application? arpan 0 2,261 03-18-2014, 08:56 PM
Last Post: arpan
  [Siebel QTP Automation] Unable to automate SiebCalendar object vishnu_cec 0 2,719 08-08-2013, 12:44 AM
Last Post: vishnu_cec
  System Reboots when Terminal emulator is configured for QTP 11 to automate putty mahesh 3 6,904 02-08-2013, 11:10 PM
Last Post: coolguy
  Automate Typeahead objects in Web application with QTP 10 SweetyChowdhury 4 5,915 03-02-2012, 03:01 PM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)