Email verification from gmail account in selenium webdriver (JAVA)

305 views
Skip to first unread message

Bilal Shahzad

unread,
Oct 1, 2019, 7:06:13 AM10/1/19
to Selenium Users

I am very beginner to Selenium, java and SQA automation. I wanted to do automated EMAIL VERIFICATION FROM GMAIL ACCOUNT. Help me please..


For this I found & followed a tutorial but failed. I don't know what happened to my code even I can't understand the error.

I followed this link step by step: http://www.abodeqa.com/email-verification-gmail-account-selenium-webdriver-java/


I found too many errors but I am including some main & top errors at following:

Could not connect to the message store.

javax.mail.MessagingException: Connection dropped by server?;

nested exception is:

            java.io.IOException: Connection dropped by server?

Also, Being a newbie I feel this tutorial too much difficult.

Can anyone please share some other easy & brief tutorials with me ? Please..

Thanks in advance!

Joe Ward

unread,
Oct 1, 2019, 8:19:31 AM10/1/19
to seleniu...@googlegroups.com
No part of the code snippet in that blog post uses Selenium. Neither do I think it's a good idea to do what you are trying to do in Selenium...

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c1d0e7b3-9a93-44ad-94f3-268cfb5cefad%40googlegroups.com.

Bilal Shahzad

unread,
Oct 1, 2019, 8:23:48 AM10/1/19
to Selenium Users
Hi Joe Ward,
Can you please suggest me any suitable method and/or any easy & helpful tutorial to do this ? Please..

Thanks in advance!

On Tuesday, 1 October 2019 17:19:31 UTC+5, That Guy wrote:
No part of the code snippet in that blog post uses Selenium. Neither do I think it's a good idea to do what you are trying to do in Selenium...

On Tue, 1 Oct 2019 at 12:06, Bilal Shahzad <myduiat...@gmail.com> wrote:

I am very beginner to Selenium, java and SQA automation. I wanted to do automated EMAIL VERIFICATION FROM GMAIL ACCOUNT. Help me please..


For this I found & followed a tutorial but failed. I don't know what happened to my code even I can't understand the error.

I followed this link step by step: http://www.abodeqa.com/email-verification-gmail-account-selenium-webdriver-java/


I found too many errors but I am including some main & top errors at following:

Could not connect to the message store.

javax.mail.MessagingException: Connection dropped by server?;

nested exception is:

            java.io.IOException: Connection dropped by server?

Also, Being a newbie I feel this tutorial too much difficult.

Can anyone please share some other easy & brief tutorials with me ? Please..

Thanks in advance!

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seleniu...@googlegroups.com.

Joe Ward

unread,
Oct 1, 2019, 8:43:01 AM10/1/19
to seleniu...@googlegroups.com
What problem is is it that you are trying to solve by capturing this verification...?

To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a22e32fa-6698-4c3a-b65b-574ea45b6a52%40googlegroups.com.

Bilal Shahzad

unread,
Oct 1, 2019, 8:50:18 AM10/1/19
to Selenium Users
Joe,
I've around 25+ landing pages of our website. Each page has a form which user submits and received a email containing more information about our company. Each page associates to a different email having different content. I just want to automate my all 25+ pages email verification rather than I used to check them manually thrice/tetra in a week. And its annoying for me.

Is there any possibility to do this automated??
Thanks,

Joe Ward

unread,
Oct 1, 2019, 8:53:43 AM10/1/19
to seleniu...@googlegroups.com
I still don’t understand what you are testing here. It it’s the emailing part why do you need the webpages? If it’s the webpages part why do you need the emails? You’re better off isolating what’s under test as much as possible and mocking what you don’t specifically need.

In the case of your component sending an email with some contents you don’t actually need gmail for that so just mock the mail aspect with MailHog or something like that. 

To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/6b4475fb-d4a6-41f3-8c97-a5843c65013a%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages