Automate much more with Mailosaur and Selenium
With Mailosaur’s API for Selenium
Test password resets, check email appearances, simulate customer interactions, and more. Mailosaur with Selenium makes it possible.
// Step 1: Send an email into Mailosaur
// Step 2: Fetch your message via Mailosaur
const MailosaurClient = require('mailosaur');
const mailosaur = new MailosaurClient('YOUR_API_KEY');
const criteria = {
sentTo: 'anything@YOUR_SERVER_ID.mailosaur.net',
};
const email = await mailosaur.messages
.get(serverId, criteria);
// Step 3: Complete the process
expect(email.subject).toBe('My password reset');
// Step 1: Send an email into Mailosaur
// Step 2: Fetch your message via Mailosaur
const MailosaurClient = require('mailosaur');
const mailosaur = new MailosaurClient('YOUR_API_KEY');
const criteria = {
sentTo: 'anything@YOUR_SERVER_ID.mailosaur.net',
};
const email = await mailosaur.messages
.get(serverId, criteria);
// Step 3: Complete the process
expect(email.subject).toBe('My password reset');
Use Selenium for more than just clicking around a website
Use the Mailosaur API to automate a wide variety of user interactions.
Set up an account, drop in a few lines of code, start testing anything from email content to 2FA logins. Reply to SMS messages and forward content onto team members for further tests.
Save even more testing time
Our API client library for Selenium makes Mailosaur an effective complement to your testing infrastructure.
Unlimited email addresses
Use a unique email address for every test, build, team member, environment, or use case. It’s up to you.
Deliverability testing
Stop your emails ending up in the spam folder. See what’s causing issues and why.
Simulate real scenarios
Don’t just test messages in isolation. Check everything works across customer journeys, like account recovery or purchase updates.
Global SMS coverage
Access international mobile numbers that are unique to your business, so you don’t use your own phone.
Multi-factor authentication
Automate one-time password testing across email, app, and SMS with just a few lines of code.
Get going in minutes
Use comprehensive guides and the expertise of our team to get your tests running quickly.
Bring an end to common issues
Mailosaur was made to solve the issues developers were facing daily.
No more late nights running manual, selective tests. Mailosaur allows you to automate your communication testing, so nothing slips through the net.
An easy-to-use and reliable API for Selenium
Whether you use Python, C#, Java, Ruby, or Node.js, Mailosaur is quick to integrate within Selenium, requiring just a few lines of code and a few minutes of your time.
To start, make sure you have a Mailosaur plan. Then, just visit this page to get started.
Why testing communication matters
How automating additional testing pathways can overcome challenges.
With Selenium password reset testing, you can automate password reset flows and confirm that every password reset email reaches users promptly, contains the correct reset link, and supports secure account recovery.
This will allow you to test the whole process, from initiating password reset requests to verifying emails, detecting issues in the password reset process before users do. By regularly running automated password reset tests, Selenium enables robust testing across all stages of password management, helping you quickly spot broken links, expired tokens, or deliverability issues, and giving you confidence in your application's resilience.