4 ms·
Can anyone recommend a good methodology for writing tests against a Playwright scraping project? I have a relatively sophisticated scraping operation going, bu
by sam2426679 3y ago
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.)