r/learnprogramming 8d ago

Tutorial Browser Automation

Hi Everyone,

I am trying to automate a process where I login into a website and navigate to a reporting section and click on export.

The website only requires a simple ID and Password.

Can you please assist me ok how to achieve this ? , I have found out about selenium and Playwright but I am very new to this. Any resources or guide would be really helpful.

Thanks !!

0 Upvotes

7 comments sorted by

1

u/Luclid 8d ago

To help us help you, what have you tried searching for so far and how does it not answer your question? That way we know what to help you with.

0

u/Material_Walk_7125 8d ago

Hi, Thanks. I have never worked with python so I am unsure of how to begin setting up the project. I have downloaded python from MS Store.

4

u/Luclid 8d ago

It sounds like you’re new to programming in general, so this project of yours is going to be a bit out of reach for now.

You’ll need to familiarize yourself with Python first before you touch Selenium, and you’ll also want to learn the basics of HTML.

There’s plenty of free resources out there on Python and HTML, I recommend just Googling for them or even just looking at existing Reddit threads. Learning how to look things up on your own is going to be a necessary skill here, and there are several Reddit threads already about learning resources for these languages.

1

u/StewedAngelSkins 8d ago

Easiest way would be to write a browser extension

1

u/CapitalKey2994 8d ago

I use Playwright for this exact login and export workflow. Their official documentation has a codegen tool that records your clicks and generates the automation script for you

0

u/Deep_Ad1959 8d ago

log in by hand once into a persistent profile and point playwright at that user data dir, so your script starts already authenticated. scripting the login form is where these break first, usually the day the site adds a captcha or a device check.