LambdaTest Community

Find answers, support, and inspiration from other users

LambdaTest Community

How do we automate email verification in Selenium?

Can anyone please tell me how to automate email verification in Selenium.

Up Vote Down Vote 0 Votes
Posted 4 months ago


By email verification,I am assuming that you mean following scenario.

  1. Login to Mail Account
  2. Search for mail by subject
  3. Get the mail message
  4. Verify content of mail body. There are JavaMail jar files available which can serve the purpose.


Maven artifact id: javax.mail. GroupId: com.sun.mail

Using its api’s,you can easily access mail .

If you have any other scenario apart from this,then please specify.

Up Vote Down Vote 0 Votes
Posted 3 months ago
1 Answer
4 months ago