Shravani123576/automation-PBL- ? reverse-engineered prompt

Reverse engineered prompt

Build me a local Python demo that automates a citizen application form in the browser, but only on a fake localhost page, never on any real government site.

It should load a sample citizen profile, check the data first and fail fast if anything is wrong, then open the demo form, fill in the fields, upload a safe sample document, and verify that the values were entered correctly. After that it should stop and show a clear review state so a person can check everything before anything is submitted. Only if I explicitly confirm should it continue to a simulated submission and show a fake receipt.

Please include a small demo form, sample valid and invalid profile data, basic document safety checks like file type, size, and no path traversal, plus a simple command line script to run the flow. I also want tests for the validators, document checks, and end to end success and failure cases. If you need current Playwright setup details, look up the latest docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab