From dd864e0b4c94619072b4e9961c586a9f51f0077f Mon Sep 17 00:00:00 2001 From: Vasanth Date: Mon, 3 Aug 2026 12:46:59 +0530 Subject: [PATCH] Fix Planner login: password field submitted empty since 2026-07-31 Microsoft changed the converged sign-in page to pre-render the password view, so input#i0118 is present and visible while the email view is still on screen. wait_for_selector() for the password field therefore returned immediately, the fill landed mid view-switch and was wiped, and the Sign in click submitted an empty box ("Please enter your password."). Planner never loaded, no Graph request fired, and the run died with "Could not capture Bearer token" on every machine from 2026-07-31 onwards. Login flow: - _fill_verified(): wait for the field to be interactive, fill, and read the value back before submitting; retry when it does not stick. - _submit_password()/_submit_totp(): confirm the page actually advanced, and raise a specific error naming Microsoft's message when a credential is rejected instead of timing out silently. - _skip_login_interrupt(): dismiss the post-sign-in interstitials, including "Let's keep your account secure", which was also never handled. The old "Stay signed in?" handler only matched input#idBtn_Back and Microsoft now renders that control as a