Getting captcha for gmail login using selenium webdriver

+1 vote
Hi , I am trying perform gmail login using selenium Webdriver.  i am getting captcha for password when i execute script using selenium webdriver. i need to capture the  confirmation code from that email.

Can somebody please help me on that?

Thanks

Suvarna
Aug 13, 2019 in Selenium by suvarna
• 130 points
3,180 views

Hey @Suvarna. The main purpose of captcha is to avoid automation and to confirm that it's a human being that is working on the webpage. You can not get the code.

Yeah, I totally agree with you Ramya, the captcha's are used in the first place to restrict any kind of automation bots automating the login of any website. They are used as an additional security layer while logging in to a website or application.

2 answers to this question.

0 votes
Hi Suvarna, captcha is created this way that you cannot automate it. So its not possible to capture the captcha image for gmail login using Selenium.
answered Aug 14, 2019 by Abha
• 28,140 points
0 votes

I tried using Tesseract OCR (Optical Character Recognition) java API..It works in breaking a text from a normal image but while trying to capture text from gmail captcha image it's not reading properly..You may check below youtube link for more details

https://www.youtube.com/watch?v=W2qBa65-36Q

answered Apr 11, 2020 by Rajesh
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP