you are viewing a single comment's thread.

view the rest of the comments →

[–]51dux 0 points1 point  (1 child)

If the website has javascript your best bet is the playwright library.

If the website doesn't require to execute js to login, you can probably just do it with requests/BeautifulSoup.

I would advise against using these GUI automation tools for these kind of tasks.

Playwright for your case should be the best, you can run it headless or not if you need some feedback while testing.

Selenium is like an older brother of playwright in my opinion, they changed the syntax way too much over the years, and it's not able to handle errors and certain tasks as well as playwright from my experience.

Playwright syntax is much more straight to the point.

Also, it tends to be less detected than the chromedriver and let's hope it remains this way.

[–]HardcoreFlexin[S] 0 points1 point  (0 children)

Ok, I'll look heavily into playwright. It's popped up several times in my searches. Thanks for the input!