News for hackers. Stuff that matters.
Re:Webrecorder: Capture interactive websites and replay them... by tw4l on Tuesday August 01, 2023 @03:13PM (#36961033)
We experimented moving to Playwright but Playwright doesn't handle long-running browser sessions well, as the devs have (maybe rightly) prioritized its use for testing over archival use cases and want you to spin up a browser each time. For archival purposes, that doesn't work as well because we're not able to save the browser profile to retain cookies such as login credentials, so we've moved back to using Puppeteer for now.
Re:Webrecorder: Capture interactive websites and replay them... by niam on Tuesday August 01, 2023 @05:49PM (#36963602)
Answered my next question before I even asked it. As a next-next question:

May I ask what y'all experienced with long-running browser sessions? Or what in particular led you to believe it was unfit for this purpose?

Re:Webrecorder: Capture interactive websites and replay them... by ikreymer on Tuesday August 01, 2023 @06:41PM (#36964256)
Re:Webrecorder: Capture interactive websites and replay them... by andrewmackrodt on Tuesday August 01, 2023 @07:03PM (#36964477)
You can use launchPersistentContext and define a custom user directory to maintain profile state: https://playwright.dev/docs/api/class-browsertype#browser-ty...