News for hackers. Stuff that matters.
Re:Web Scraping in Python – The Complete Guide by sam2426679 on Tuesday February 20, 2024 @05:06PM (#39447621)
Can anyone recommend a good methodology for writing tests against a Playwright scraping project?

I have a relatively sophisticated scraping operation going, but I haven’t found a great way to test methods that are dependent on JavaScript interaction behind a login.

I’ve used Playwright’s har recording to great effect for writing tests that don’t require login, but I’ve found that har recording doesn’t get me there for post-login because the har playback keeps serving the content from pre-login (even though it includes the relevant assets from both pre and post login.)

There are no comments on this comment yet.