After login, Chrome on some machines opens the portal dashboard in a new
tab and closes the SSO tab. Poll all window handles until the portal URL
is found, then switch to it — works for both same-tab and new-tab redirects.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- MassHealth: detect SSO/portal maintenance page and return clear error
instead of cryptic step1 timeout; wait for SSO redirect to complete
before running step1; add modal dismissal and failure screenshot/logging
- DentaQuest: detect maintenance page in login and step1; search by
member ID + DOB only (remove first/last name to prevent stale data
from previous patient being submitted)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>