I want to automate a simple workflow: open a website, sign in with an ID and password, navigate to the reporting section, and click the export button. I'm new to browser automation and have been looking at Selenium and Playwright, but I'm not sure how to set up a project or where to begin. I installed Python through the Microsoft Store and would appreciate beginner-friendly guidance or resources.
2 Answers
Another approach is to sign in manually once using a persistent browser profile, then have Playwright reuse that profile for later runs. This avoids hard-coding credentials and is often more reliable, since automated login flows can stop working if the site later adds a CAPTCHA, device verification, or another security step. Make sure the profile directory is stored securely and only used by you.
Playwright is a good choice for this. Its code generation tool can watch you interact with the site and create a starter script based on your clicks, including filling in the login form and selecting the export option. Afterward, clean up the generated code and add checks to make sure each page has loaded before continuing.

Thanks! I haven’t used Python before, so I’m mainly unsure how to set up the project after installing it. I’ll look into Playwright’s code generation feature.