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

CRM Fragmentation: The Hidden Operational Cost in Microsoft 365 Environments

CRM fragmentation rarely shows up first as a failed system. More often, someone exports the pipeline to Excel before a forecast call, copies a...

2 hours ago

Microsoft 365 & Power Platform Call (Microsoft Speakers) – August 4th, 2026 – Screenshot Summary

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

3 hours ago

The Dynamics 365 and SharePoint Security Gap Most Organizations Miss

The biggest security risk in your Dynamics 365 and SharePoint environment may not be a cyberattack. It could be outdated permissions. When emp...

7 hours ago

Microsoft 365 Copilot: Planner capabilities in Copilot chat

We are introducing Planner capabilities in Microsoft 365 Copilot Chat. Users will be able to create, update, QnA Planner tasks and plans using...

10 hours ago

Microsoft Teams: Action required to connect Teams Android devices to Teams Rooms Pro Management portal

Microsoft Teams Android device management in the Teams admin center will retire by August 31, 2026. Devices must connect to the Teams Rooms Pr...

10 hours ago

Microsoft Teams: Interpreter agent support in Teams Rooms on Android

Microsoft Teams Rooms on Android will support real-time Interpreter agent for up to nine languages, enabling multilingual meetings with voice ...

10 hours ago

Microsoft Viva: Targeted audience surveys in the Copilot dashboard

Microsoft Viva introduces targeted audience surveys in the Copilot dashboard, enabling authorized users to send Viva Pulse surveys to predefin...

11 hours ago

SharePoint Pages: Flexible Section Authoring Improvements

SharePoint Pages will enhance Flexible Sections with visual and persistent layout guides, easier resizing, and the ability to convert standard...

11 hours ago

Microsoft Teams: Multilingual meeting recaps support personalized recap translation

Microsoft Teams will personalize meeting recaps by displaying them initially in each participant’s selected translation or interpretatio...

11 hours ago

Microsoft Teams: Modernized Gallery view in Teams Rooms on Android

Microsoft Teams Rooms on Android will receive a modernized Gallery view in mid-August 2026, aligning it with Windows. Updates include consiste...

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