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

Teams External Collaboration Administrator Role Arrives

A new Entra ID role is coming. The Teams External Collaboration administrator role allows users to manage external collaboration settings. Qui...

18 minutes ago

Microsoft 365 & Power Platform Call (Microsoft Speakers) – January 13th, 2026 – Screenshot Summary

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

14 hours ago

Updates available for Microsoft 365 Apps for all channels

We’ve released updates to the following update channels for Microsoft 365 Apps: Current Channel Monthly Enterprise Channel Semi-Annual E...

19 hours ago

Microsoft Copilot (Microsoft 365): Researcher Output Formats

The Researcher Agent in Microsoft 365 Copilot empowers users to create rich, detailed reports on any topic they choose whether from work or we...

19 hours ago

Microsoft Copilot (Microsoft 365): When using Agent Mode in Word, you will be able to manually select which model to use

Agent Mode in Word lets you choose from multiple models, giving you flexibility to select the right model for your task. Product Word Release ...

19 hours ago

The Channel Agent Brings AI Interactions to Teams Channels

Chat and meetings have their agents, and now the Teams channel agent is available to help members understand what happens inside channels. Lik...

2 days ago

Microsoft Teams: Browser selection for links in Teams Mobile

Starting February 2026, Teams Mobile on Android and iOS will prompt users to choose a browser for non-Office and PDF links, encouraging Micros...

3 days ago

Teams application update needed to enable Explicit Recording Consent feature on Teams Phone Devices

Microsoft Teams Phone Devices will require app version 1449/1.0.94.2025443703 to enable Explicit Recording Consent for 1:1 VoIP calls starting...

4 days ago

Microsoft Teams: Create custom environments and templates for immersive events in Microsoft Teams

This release brings the next evolution in immersive collaboration in Teams. Designed for creators and event organizers, these new capabilities...

4 days ago

Microsoft Copilot (Microsoft 365): Structured Document Generation with Forms

Structured Document Generation with Forms enables organizations to create, manage, and generate standardized documents at scale with built-in ...

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