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.