You may also like...

16 Responses

  1. Hi vishvas,

    Your idea is good and you have written program very well but if we have some mechanism for password getting it from some file and get it encrypted in the code that would be good rather than simply giving directly the password in the code. becoz third person can see the password directly..

    This is just my view point I think if the password encryption is also done then its really perfect…

    • Vishwas says:

      Hi RamKrishna,

      Thanks for your valuabel feedback.

      This was actually done intentially, Yes it would be a great idea to have encryption OR having credential in some other file.

      Scenarios was keeping in mind that If any one wants to modify the same for OUTLOOK or some Other Email account, He/she can easily configured the same.

      Morover, If some one has BDD or Managemnt level test case just like below, he/she can easily used it as :-
      Check gmail account for Email Recived:
      # Check Gmail for Verification with User “gurutester1@gmail.com” and password “p488w0rd” : Here can make the calling of account whichever feasible for the user
      #Search for subjectKeyword “New User registered” fromEmail “web@google.com” bodySearchText “You have successfully register ”

      Hope, this will help you guys. Thanks..!!

      –Vishwas

  2. Shruti says:

    Great Work Vishwas. Very Well Explained!!

    I just had a few questions. Will the same code work for Outlook?
    I have a scenario where i upload a file on the application and as soon as the file is uploaded, the uploader receives an email into outlook.
    So it is possible to test the same with the above code?

    Also i wanted to know if Javax API free?

    Regards,
    Shruti

  3. Karabasappa patil says:

    Thank you

  4. Karabasappa Talawar says:

    My account sharsh

  5. Karabasappa Talawar says:

    Great Work Vishwas. Very Well Explained!!

    I just had a few questions. Will the same code work for Outlook?
    I have a scenario where i upload a file on the application and as soon as the file is uploaded, the uploader receives an email into outlook.
    So it is possible to test the same with the above code?

    Also i wanted to know if Javax API free?

    Regards,

  6. Raghavi says:

    Hello,

    DO Javax api and java mail both are diffrent are same,

    I have used the same code as above and I ma getting the message as invalid credentials though I have given valid credentials.

  7. Raghavi says:

    Could you please guide anybody what are the jars I need to be imported. and preconfigurations required.

  8. Rodrigo González says:

    Hi Vishwas:

    I’m trying to extract a specific text received from an Email sent after ending a flow. I need to fetch a code sent by Email to my Gmail account, but I’m not able to reach the xpath:

    87884
    The error is the next:

    org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {“method”:”xpath”,”selector”:”//*[@id=”:13s”]/div[1]/div[2]/div[1]/div[1]/div[6]”}

    I can’t reach the element with xpath, id… No way!!!

    Could you please help me?

  9. Kratarth gupta says:

    What Part p in the getText method ?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.