Cypress vs.Selenium WebDriver: Which Is Better for You?


Cypress.io Vs Selenium



A few days back while browsing I just saw an article stating that Cypress.io is a killer for Selenium? I just wonder at the same time I had the curiosity to explore how and why. 

So I decided to explore cypress.io by myself and below are some similarities and differences I found between the two.




Functionality
Selenium
Cypress.io
Programming language supported
C#, Java, Perl, PHP, Python, and Ruby
JavaScript
Browser supported
All
Only Chrome
BDD Support
Yes
No
Locator Strategies
Support all type of locator for a normal web application.
CSS and Xpath
Testing Framework Supported
Junit and TestNG
Mocha and Chai
Support for Parallel/Cross Testing
Yes (Support for multiple class file simultaneously)
No
Support for Cloud Testing
Yes
No
Data Driven support
Yes using excel/json/CSV
No
Reporting
Allure, Extent and all other dashboards can be easily integrated
Only Cypress Native Dashboard
Support for CI and Docker
Yes
Yes

In Nutshell I think cypress.io is still at a very early stage and it will take some time for it to compete with selenium.

Please Note all views expressed in this article are my personal views.



SHARE THIS

Author:

My Name is Ankur Jain and I am currently working as Automation Test Architect.I am ISTQB Certified Test Manager,Certified UI Path RPA Developer as well as Certified Scrum Master with total 12 years of working experience with lot of big banking clients around the globe.I love to Design Automation Testing Frameworks with Selenium,Appium,Protractor,Cucumber,Rest-Assured, Katalon Studio and currently exploring lot in Dev-OPS as well. I am currently staying in Mumbai, Maharashtra. Please Connect with me through Contact Us page of this website.

Previous Post
Next Post
September 24, 2019 at 3:01 PM

Ankur Jain, Here is an update. Cypress do have plugin for BDD implementation named as 'cypress-cucumber-preprocessor'

Reply
avatar
September 24, 2019 at 3:01 PM

Ankur Jain, Here is an update. Cypress do have plugin for BDD implementation named as 'cypress-cucumber-preprocessor'

Reply
avatar
September 24, 2019 at 3:03 PM

Plus Cypress support for data driven test data approach using fixtures here at doc https://docs.cypress.io/api/commands/fixture.html

Reply
avatar
September 24, 2019 at 3:04 PM

Cypress community developed and modern + Smart way for Modern Stack,

Reply
avatar