Fetching values from email in protractor test case

This is something I’ve solved recently. Hope the solution would also apply for your use-case. Prerequisites: mail-listener2 package understanding of the concept of promises Step by step instructions: Install mail-listener2: npm install mail-listener2 –save-dev In your protractor config initialize Mail Listener and make it available globally: onPrepare: function () { var MailListener = require(“mail-listener2”); // … Read more