
Screenshots Behind Login Shouldn't Require a DevOps Engineer
A technical writer on our team needed screenshots of the admin dashboard. The dashboard is behind SSO login (Okta). She asked me to help. I wrote a Playwright script with the login flow. It broke after the next Okta update. I fixed it. Then IT enabled MFA. Script broke again. I added TOTP handling. Then they rotated the client secret. Three weeks of back-and-forth for 6 screenshots. The problem Most screenshot automation tools assume you can script the login. But modern auth is designed to resist automation: OAuth redirects across domains CAPTCHA challenges MFA (TOTP, push notifications, hardware keys) SSO providers that change their UI regularly Session cookies with short TTLs You end up maintaining auth code that's more complex than the actual screenshot capture. Just log in yourself Heroshot opens a real browser: npx heroshot config The technical writer logs in herself. Through Okta, with MFA, the whole thing. She does this every day anyway. Takes 15 seconds. Then she clicks the ele
Continue reading on Dev.to Webdev
Opens in a new tab


