Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

We upgraded captcha in our application to use images instead of letters
In the previous version I could fill the captcha field with a specific token to pass my the validation. Since now there is no such field i need to find an other way to pass the same value for validation. Is there a way to do that using selenium webdriver ?

I am updating the description

My tests run on a test enviroment not the actual production site , I already have a String to pass the capcha test. Basicly what i need to do is set the parameter thats been posted to the server for captcha validation

share|improve this question
    
Do you run the automation tests against test environment and/or production? –  Twaldigas Jul 30 at 11:33
    
Test Emviroment –  Theo Jul 30 at 14:28

2 Answers 2

In your test environment, you need your developers to enable some way of bypassing the captcha. You need to make sure that is only available in your test environment. There are a lot of ways of doing it, commonly it is you typing in a specific string that is recognized by the system to bypass it.

share|improve this answer

If you can, talk with the developers. They could quickly develop something like this:

If test environment, than accept a specific input oft the captcha; else accept only the real solution of the captcha.

In the most cases exist a config file for things like that.

Keep in mind, that captchas exist to prevent automation. So I think you has no other option.

share|improve this answer
    
How is this different from the first answer? –  user2062360 Aug 1 at 16:03
    
@user2062360 There is no different. We just started to answer the question at the same time and Sam was faster to press the submit button. I did not mentioned the other answer until now. –  Twaldigas Aug 2 at 0:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.