THIS IS NOT ABOUT HOW TO RETRIEVE TEXT FROM CATPCHA
Basically my problem is that after i extract text from captcha and enter it in the provided box, and simulate the 'return' key using element.send_keys(Keys.RETURN), an alert box comes up saying captcha was wrong and a new captcha comes up, though i can verify that text matches the captcha. I've also tried using the 'click' action on the submit button but no help.
An interesting thing i noticed was that if I automate the process upto entering captcha text and then press enter/click submit, everything works fine. So i think there is some problem in my way of simulating return/click through selenium. Any idea what can the problem be.
Just for the record I'm using tesseract OCR with pytesseract wrapper for python to decode captchas and I AM getting CORRECT text outputs in 90%+ cases, so its not just because of wrong text. I've also checked to remove any leading or trailing spaces using strip() method.