The Debate Between Cypress and Playwright

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Hey Gleb, let me preface my comment by saying that I agree with all the things you said about Cypress like better DX for writing tests, healthy community, great docs. The visual quick feedback from Cypress is indeed imho one of the biggest differentiators when it comes to empowering good engineers when writing code. I've also been looking at most of the blog posts, articles, video and other media comparing the two, and also came to the conclusion that they are in the worst case very disingenuous, or in the best case written by people who don't have much experience with Cypress.

That being said the elefant in the room is the performance of Playwright versus the performance of Cypress, I was a bit surprised that you haven't addressed it in the video, could you comment on this aspect of the comparison?

alexursu
Автор

the biggest plus of the the Playwriht is that it is 4 times faster

stokratt
Автор

@gleb, Cypress does not allow multiple sessions at a time. In some scenarios for example calling features is not feasible to validate because we need two sessions on at a time. Correct me if i am wrong

deepak
Автор

I wanted to ask you a question: how does the webdriver protocol works? Is like the opposite thing of injecting code into the browser?

Nachtjagerz
Автор

Gleb, it is still heavily biased: you don't compare the speed, dismiss the main DevX from within VS Code where you see a live browser in Playwright, speculate on syntax and on ability to implement spies. You should stick with your principle of not comparing the tools while being heavily biased! That's what we do at Playwright!

pavelfeldman
Автор

Thanks a lot, clear and useful information,

Most of the time I notice people asking to compare cy and pw for speed, but in real time it's hardly couple of seconds difference,
I don't thing any project team change automation framework just to save some seconds,

I like pw but I prefer cy always,
1. Easy to write
2. Assertion is easy
3 dedug is easy due to test runner
4, spy and stub network call

animeshkr