0% found this document useful (0 votes)
37 views60 pages

Battle of The Frameworks

The document compares Selenium, Cypress, and Playwright testing frameworks. It discusses their approaches to finding selectors, handling logins, iframes, waits, alerts, navigation, API requests, and the page object pattern. Test run performance data is provided, showing Playwright as the fastest option. Playwright is favored for its speed, growing community, and backing by Microsoft as the creator of the Puppeteer project.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views60 pages

Battle of The Frameworks

The document compares Selenium, Cypress, and Playwright testing frameworks. It discusses their approaches to finding selectors, handling logins, iframes, waits, alerts, navigation, API requests, and the page object pattern. Test run performance data is provided, showing Playwright as the fastest option. Playwright is favored for its speed, growing community, and backing by Microsoft as the creator of the Puppeteer project.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 60

Battle of the frameworks!

Selenium vs Cypress vs Playwright

Matthias Van Limbergen


Bart Van Raemdonck
M a t t h i a s Va n L i m b e r g e n

- QA Engineer

- 4 years with Axxes

- Project at Amadeus IT

- Engaged
B a r t Va n R a e m d o n c k

• Compentence Coach QA
• DPG Media
• Puurs-Sint-Amands
• Engaged and father of one
• Passionated about test automation
• Sports & music
Selenium?
Cypress?
Playwright?
Playwright
Let the code speak

Selenium vs Cypress vs Playwright


Finding Selectors

Selenium vs Cypress vs Playwright


Finding selectors

Selenium

Cypress

Playwright TS/JS
Selectors in Selenium

o ID
o Name
o Classname
o Linktext
o Partial Linktext
o Tagname
o Css selector
o XPath
o Javascript
Selectors in Cypress
Selectors in Playwright
Log in/ element interaction

Selenium vs Cypress vs Playwright


Log-in Scenario
Log-In Selenium
Log-in Cypress
Log-In Playwright
Inline frames

Selenium vs Cypress vs Playwright


Inline Frame Case
Inline Frame Selenium
Inline Frame Cypress
Inline Frame Playwright
Waits

Selenium vs Cypress vs Playwright


Wa i t C a s e
Wa i t S e l e n i u m
Wa i t S e l e n i u m
Wa i t C y p re s s
Wa i t P l ay w r i g ht
Alerts

Selenium vs Cypress vs Playwright


Alerts scenario
Alerts Selenium
Alerts Cypress
Alerts Playwright
Navigate to new Windows

Selenium vs Cypress vs Playwright


Navigation Scenario
Navigation Selenium
Navigation Cypress
Navigation Playwright
API requests

Selenium vs Cypress vs Playwright


API Cypress
API Playwright
Page Object Pattern

Selenium vs Cypress vs Playwright


Page-Objects scenario
Page-Objects Selenium
Page-Objects Cypress
Page-Objects Playwright
Running the tests

Selenium vs Cypress vs Playwright


Running the tests

Selenium Cypress Playwright headed Playwright (1 worker) Playwright (3 workers)


(1worker)
23 20 12 8 4
27 19 12 8 4
27 18 13 8 5
24 18 12 7 4
22 19 13 8 4
Comparison
Why Playwright on our projects

Playwright

- + MICROSOFT + Big community + Good Documentation


+ Less bugs + A lot of options
+ Creators of Puppeteer
- more flakey tests - more flakey tests
+ faster
- no new developments
+ growing community - bad parallelisation
- less documenation

You might also like