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

Harnessing Dynamics 365 Copilot to Access Tailored Content from SharePoint

As a salesperson, your success depends on providing accurate and on-time information to your clients. Whether it’s product brochures, pr...

2 hours ago

Windows 10 End of Support for Microsoft Teams Rooms on Windows

Support ends soon for Window 10 on October 14, 2025, and devices will no longer receive security and feature updates. Upgrade your Teams Rooms...

3 hours ago

Microsoft Viva Engage on the web: New way to access to “Delegate management” feature

Before this rollout, users accessed the Delegate management feature for Microsoft Viva Engage on the web and Viva Engage in Microsoft Teams fr...

3 hours ago

Microsoft Viva Learning: Archive learning objects in My Learning sections

In Microsoft Viva learning, users can archive learning objects shown in the My Learning > In-progress section and in the My Learning >...

3 hours ago

Microsoft Viva Insights advanced insights: Organizational data uploads move to the Microsoft 365 admin center (Wave 1.3)

Note: If your organization does not use the data upload feature in the Microsoft Viva Insights advanced insights app, please disregard this me...

3 hours ago

Microsoft Viva: Central community membership approval experience revamped

The centralized community membership approval experience undergoes a revamp to make it easier for community admins to manage approval requests...

3 hours ago

Microsoft Viva: Editing and viewing community ‘info’ revamped

Revamp the community “info” experience to be in line with the existing Engage user patterns. Editing the info, will now be availab...

3 hours ago

Microsoft Viva: Viva Learning – Semantic search support for in-app Searches

,Semantic search capability understands context and nuances of user queries, providing more accurate and relevant results. Product Microsoft V...

3 hours ago

Microsoft Copilot (Microsoft 365): Suggestions for slide templates as you work

Now, instantly get suggestions for slide templates to use while creating slides in PowerPoint. Insert a new slide or start typing the slide na...

3 hours ago

Microsoft Copilot (Microsoft 365): Suggestions for slide templates as you work

Now, instantly get suggestions for slide templates to use while creating slides in PowerPoint. Insert a new slide or start typing the slide na...

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