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

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...

1 day 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...

1 day ago

Converting Get-MailboxFolderStatistics ids for use with the Graph API

In this article, we discuss how to convert Exchange folderIds (as returned by the Get-MailboxFolderStatistics cmdlet) to the RestId identifier...

1 day ago

Microsoft Teams: Town hall chat messages now support up to 500 characters

Microsoft Teams town hall chat messages will increase from 200 to 500 characters starting early June 2026. This applies to all attendees with ...

3 days ago

Dynamics 365 Customer Service – Improve customer outcomes with Service Agent in Microsoft 365 Copilot

We are announcing the ability to improve customer outcomes with Service Agent for Microsoft 365 Copilot in Dynamics 365 Customer Service. This...

3 days ago

Microsoft Teams: Voicemail transcription service migration and new languages

Starting June 2026, Microsoft Teams voicemail transcription will migrate to Azure LLM Speech using the Fast Transcription API, improving accur...

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