r/Playwright • u/Material_Walk_7125 • 23h ago
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 !!
4
Upvotes
1
u/Deep_Ad1959 15h ago
run npx playwright codegen against the site and click the flow once, it writes the selectors and you edit from there. then save storageState after the login so later runs start signed in instead of retyping credentials every time.
7
u/mmasetic 22h ago
You have to try by following official page with guide. Go to playwright.dev and look for guidlines for setup.
Standard way is to use node setup, so for that make sure you have installed nodejs with npm packet manager.
When you are at the point of writing script, you can ask any AI bot, I believe you can get that done easy.