Re:Web Automation: Don't Use Selenium, Use Playwright
by nyuszika7h on Wednesday November 09, 2022 @07:53PM
(#33540647)
selenium also supports headless mode though, or is playwright's one different?
Re:Web Automation: Don't Use Selenium, Use Playwright
by sebazzz on Thursday November 10, 2022 @01:11AM
(#33542907)
> With Playwright you don't need to put manual waits in your program. It's async.
That is just choosing between a blocking method or... a blocking method which suspends and resumes a thread.
> headless mode
That is really up to the browser driver to implement that, and you can do that perfectly fine in Selenium.
Re:Web Automation: Don't Use Selenium, Use Playwright
by hansvm on Thursday November 10, 2022 @06:55AM
(#33545172)
Selenium supports things like waiting till an element is clickable?
The webdriver issue is definitely annoying though. Not sure if there's a better way, but we're using a binary regex on the electron app in question to find a matching version and download it on the fly as part of test setup.
From what I can tell here are the benefits:
* With Playwright you don't need to put manual waits in your program. It's async.
* You also don't need to keep updating the Selenium.Webdriver to stay in sync with your browser version. This is a 15-20 minute time sink each time it happens.
* Can run in headless mode which will run the test suite much faster than selenium.
* Also appears to have better command line options to be run from a CI/CD environment