Nischal Dhoj Kunwar
Menu
All research and projects

engineering

Signup Automation

End-to-end browser automation of a nine-page signup flow, including email OTP verification over IMAP, retries, failure screenshots and a per-run test report.

Write-up

Multi-step signup forms with a one-time code are slow and error-prone to test by hand. This drives the whole journey the way a user would, so a regression anywhere in the flow is caught in one run, with logs, screenshots and a report that shows where it broke.

  • OTP by email. It polls a dedicated test Gmail inbox over IMAP for the verification mail addressed to that run's unique plus-tag address, and extracts the 6-digit code. Each run also gets a random phone number, so runs never collide.
  • Robust to flaky pages. Dropdowns and dynamic forms retry before a step fails, and waits are explicit, not fixed sleeps.
  • Useful when it fails. A screenshot per failed step, console and file logs, a Markdown and JSON report per run, and an exit code a CI job can act on.
  • Maintainable. All locators sit in one file, all credentials and data in .env, and the browser driver is fetched automatically.

It creates real accounts and sends real emails, so it is meant only for sites you own or have explicit permission to test, using dedicated test accounts.

Built with

  • Python
  • Selenium
  • IMAP