News for hackers. Stuff that matters.
Re:Web Automation: Don't Use Selenium, Use Playwright by cebert on Wednesday November 09, 2022 @05:55PM (#33539340)
Playwright can run tests in multiple windows as well as tests that cross multiple domain origins. My team builds a collaborative app where we wanted to cover scenarios where two different users collaborated on the same page. This was easy to implement in Playwright, in Cypress it is not possible. We can open two browser windows with Playwright and simulate two or more users simultaneously editing a page.

Also Playwright is a general browser automation tool and can be used for more things than just testing. For example, scraping website data or generating preview thumbnails for URLs.

Re:Web Automation: Don't Use Selenium, Use Playwright by symaxian on Wednesday November 09, 2022 @06:13PM (#33539544)
Selenium can definitely run tests in multiple windows.

You can open multiple tabs within the same browser window, or you can create multiple WebDriver instances for multiple windows.

Re:Web Automation: Don't Use Selenium, Use Playwright by cebert on Wednesday November 09, 2022 @06:18PM (#33539595)
Fair point. Cypress cannot, the initiator of this comment thread context asked what Selenium can’t do that Playwright can, but my brain misted this as “Cypress”. Sorry about that.
Re:Web Automation: Don't Use Selenium, Use Playwright by brightball on Wednesday November 09, 2022 @09:50PM (#33541584)
Are there any good tutorials out there for using Playwright for scraping? Never tried it but I have a need right now.