Loading...

Automating M365 login with MFA in Playwright tests

Automating M365 login with MFA in Playwright tests
I have been using Playwright to automate my tests for a long time, but one thing I struggled with was automating the login flow for Microsoft 365 with a multi-factor authentication (MFA) account. When using an MFA-enabled account, you must provide an additional manual step to complete the login process.

Published on:

Learn more
Elio Struyf - Office Development MVP
Elio Struyf - Office Development MVP

Microsoft 365 / SharePoint / Search / Development / Branding / Speaker / Blogger

Share post:

Related posts

Restricting Access is The Most Important Step in a Microsoft 365 Copilot Deployment

I was asked what the most important step is in the deployment of Microsoft 365 Copilot. It's a good question. Put simply, restricted access is...

1 hour ago

Microsoft 365 Copilot in Word: Improved support for complex edits

Microsoft 365 Copilot in Word will support complex edits like tracked changes, comments, and document structure while preserving formatting an...

13 hours ago

Copilot Notebooks available in Microsoft 365 Copilot Chat for Basic users

Copilot Notebooks will be available in Microsoft 365 Copilot Chat for Basic users starting mid-June 2026, providing a persistent AI-powered wo...

13 hours ago

Rolling out a simplified, consistent design and navigation experience in Viva Engage

Viva Engage is updating to a simplified, consistent design and navigation across web and Teams, improving usability and reducing clutter. The ...

13 hours ago

Microsoft 365 Copilot: Retirement of Sora video generation experience (Frontier)

The Sora video generation experience in the Frontier program will retire between mid and late June 2026. Users will lose access to create new ...

13 hours ago

Microsoft 365 & Power Platform Call (Microsoft Speakers) – June 9th, 2026 – Screenshot Summary

Call Highlights   SharePoint Quicklinks: Primary PnP Website: https://aka.ms/m365pnp Documentation & Guidance SharePoint Dev Videos Issues...

16 hours ago

Microsoft Teams: Improved app and agent access request flows for admin‑blocked apps

Microsoft Teams will introduce a clearer, guided request flow for access to admin-blocked apps and agents, improving user notifications and ad...

3 days ago

Microsoft 365 Archive: File-level archiving General Availability

Microsoft 365 Archive now supports file-level archiving for SharePoint files, enabling cold storage with discoverability. Rolling out worldwid...

3 days ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy