Dev.to
6/24/2026

Playwright versus WordPress's "admin email confirmation" screen — how automation can clear the 6-month gate
Short summary
WordPress injects an admin email confirmation screen every ~6 months after login, breaking automated Playwright scripts that don't handle it explicitly. The post shows how to detect and dismiss the confirmation screen in a few lines of code, then shares a real incident where this handler was missed in one of four duplicate login flows. Key lesson: deduplicate automation logic or ensure the same defensive patterns are copied everywhere, backed by negative tests that prevent regressions.
- •WordPress admin email confirmation screen appears ~every 6 months, breaking unhandled Playwright automation
- •Detect with CSS selector input[name='correct-admin-email'] and click to proceed
- •Real case: handler was duplicated in 4 places but only 3 included the confirmation fix; tests guard against such misses
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



