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 365: Introducing Exchange Online Cross-tenant Message Recall

We’re enhancing the Exchange Online Message Recall feature to add support for cross-tenant recalls. Today, you can recall messages only ...

1 hour ago

Microsoft Teams: MTR Proximity Join support for Presenters in Town Halls, Webinars, and Structured meetings

Presenters can use Proximity Join with Teams Rooms (MTRoW and MTRoA) to seamlessly connect to nearby room systems during Town halls, webinars,...

1 hour ago

Microsoft Copilot (Microsoft 365): Copilot in Forms – US Government clouds

Copilot in Forms is being enabled for Microsoft Forms in Government Cloud environments, bringing end-to-end AI assistance to forms, from creat...

1 hour ago

Microsoft Copilot (Microsoft 365): Work IQ APIs – Unified REST Endpoint for Agents and Workflows

Introduces a new REST endpoint for Work IQ that serves as a unified entry point for invoking agents and workflows, providing a consistent, sca...

1 hour ago

Microsoft Purview: Data Lifecycle Management – Hard delete capability for OneDrive and SharePoint through secure priority cleanup workflows

Ability to select hard delete configuration for a Priority cleanup policy for OneDrive and SharePoint content and skip recycle bins. Product R...

1 hour ago

Microsoft Copilot (Microsoft 365): Work IQ APIs – Endpoints: Declarative Agent Access

Enables programmatic access to first‑party and tenant‑defined declarative agents via the Work IQ endpoint, allowing applications to trigger sp...

1 hour ago

Microsoft Teams: Teams room builder in the Pro Management portal

The Teams room builder is a user-friendly, visually engaging tool to help IT managers design and configure Teams Rooms traditional, signature,...

1 hour ago

Microsoft Copilot (Microsoft 365): Work IQ APIs – Remote MCP Server Support

Supports connecting to remote MCP servers through the Work IQ endpoint, enabling agents to securely invoke external tools and services beyond ...

1 hour ago

Microsoft Purview: Data Lifecycle Management – Archive OneDrive and SharePoint files under retention

Retention based file archiving moves inactive content to low-cost storage, lowering costs without compromising on Compliance – while kee...

1 hour ago

Microsoft Teams: SharePoint thumbnail previews

Microsoft Teams on desktop now shows rich link previews when you share SharePoint pages. Links automatically expand into a visually appealing ...

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