How to bypass Captcha when automating tests
Category:
Question ID: 109785
1
0

Our web application has a Captcha validation when logging in. How can we use UFT to pass the Captcha test?

Marked as spam
Posted by (Questions: 386, Answers: 64)
Asked on August 13, 2020 1:33 pm
428 views
Answers (1)
1
Private answer

Captcha is specifically designed to defeat automation tools. UFT has no built-in features for overcoming this limitation.

I did find this article that had some interesting ideas on how to work-around Captcha.

I also had a coworker send me the following:

"Web sites may use Word Verification fields that display text that the user must enter to verify that the user is not a machine. Such verification blocks automated usage of the page, including running automated tests.
If your script fails because of word verification failure, you must cancel this function on the Web site you are testing. " (Micro Focus)

There currently is not a direct solution to enter CAPTCHA values; however, below are the alternative options to try:

1. Request developers to remove CAPTCHA validation OR
2. Ask developers to print the CAPTCHA value somewhere in the response so that we can parse the same for duration of testing OR
3. Make the CAPTCHA as static so that we can use the same value for every iteration for duration of testing. OR
4. Check with the "CAPTCHA vender to see if there is a master key or testing mode to allow automated testing.

Marked as spam
Posted by (Questions: 16, Answers: 807)
Answered on August 13, 2020 1:34 pm
0
We did option 3 from the first link: 3. If possible, ask your developers to add a flag that will allow you to bypass the control during the testing phase. Our developers were able to do this and it works well.
( at August 13, 2020 1:57 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top