Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can we automate CAPTCHAS through QTP?
#1
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
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
#4
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
#5
Yes, for Gamil and yahoo we can not find the values of CAPTCHAS in view source page.

Thanks,
Veanktesh. g
#6
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
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
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
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
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 1,209 06-21-2019, 09:45 PM
Last Post: uma.kasarla@gmail.com
  Can QTP automate VC++ application? arpan 0 2,604 03-18-2014, 08:56 PM
Last Post: arpan
  [Siebel QTP Automation] Unable to automate SiebCalendar object vishnu_cec 0 3,063 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 7,568 02-08-2013, 11:10 PM
Last Post: coolguy
  Automate Typeahead objects in Web application with QTP 10 SweetyChowdhury 4 6,604 03-02-2012, 03:01 PM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)