Browser Robot
You'll write a script that logs in, clicks the buttons and downloads the statement so you don't have to, and runs weekly for a month.
About
Some chores live behind a login with no API: downloading a monthly statement, filling in the same form, or checking a balance. Playwright and Selenium drive a real browser from a script. Only use this on your own accounts, only for what the terms allow, and never for anything that competes with other people for a limited thing like tickets or appointments. Sites change their buttons every few months, so build it to fail loudly.
At a glance
- Per requirement
- 35 XP
- Completion bonus
- 300 XP
- Requirements
- 6
- Takes
- A month
- Skill level
- Intermediate (months of practice)
- Cost
- Free
- Supplies
- Nothing special
- Where
- At home
- Other people
- On your own
Requirements
-
1
Script a browser to open a site you use, log in, and screenshot the logged-in page. Playwright is the easier of the two to start with. Credentials come from environment variables or your password manager's command line tool, never from the script file. Take a screenshot of the automated screenshot. Photo
-
2
Navigate to a page three clicks deep and read one value off it. Use selectors that are stable, like text content, labels or test IDs, rather than the fourth div in the third row. Print the value. Take a screenshot of it printed. Photo
-
3
Download one file and name it with the date. A statement, an invoice or an export all count. Save it to a folder your paperwork pipeline watches if you have one. Take a screenshot of the file in the folder. Photo
-
4
Handle two-factor without turning it off. Pause for you to type the code, or read it from an authenticator tool you already use. Don't disable two-factor to make the script easier. Film the pause and the resume. Video
-
5
Make it fail loudly when a selector isn't found, with a screenshot of what it saw. Save a screenshot and the page HTML on any error, and message yourself. Break a selector on purpose and show what happens. Take a screenshot of the failure message and the page it captured. Photo
-
6
Run it from a schedule weekly for a month, with no manual clicks. Have it do a balance check, an export, or a statement download if a new one exists. You're looking for four runs, four dates, and four files or logged values. Take a screenshot of the folder or the log. Photo