Cypress vs Selenium

Cypress vs Selenium

Looking at this process, I will say that people will have arguments because you can use multiple programming languages to make any test happening. However, everything will depend on what you would like to accomplish, how fast, and how well you want to see reports.

Photo by [Yancy Min](https://cdn.hashnode.com/res/hashnode/image/upload/v1627017893914/CBMFvlzoy.html) on [Unsplash](https://unsplash.com?utm_source=medium&utm_medium=referral)Photo by Yancy Min on Unsplash

Looking at this process, I will say that people will have arguments because you can use multiple programming languages to make any test happening. However, everything will depend on what you would like to accomplish, how fast, and how well you want to see reports.

Having the experience, and dealing with both tools, this is what I’m going to say. Selenium is the tool that will be your nightmare and your sunshine in certain circumstances. The reason why I say that is because to be able to start playing with this tool, you will have to depend on a lot of different libraries depending on the programming language that you are using.

Every time that I’m using selenium is because I like the way that Python will play along with the end-user like setting up variables that will allow you to type the input through the terminal or command line.

On the other hand, I will say that cypress will not be able to do that since you will have to be very specific about what you want to be able to get the input and output correctly. However, depending on the task and type of test that you are doing, you will get your test results in a matter of seconds compared to cypress.

Biggest Difference

Cypress will provide you way more flexibility to run different reports through the web links, terminal, web app, and many more options. With Selenium, you will have to build your own reports or get a different library where you have to be more specific.

Time is killer in this situation since Cypress will provide you their own web-app to select the file and to see what is doing, and it can check 19 files in less than 1 minute. On the other hand, selenium will provide you one file at a time.

Training / Examples will mark a huge difference since not everybody has been in the QA or Software Development environment, meaning that some of us will need to see things working out to make sure we can build better experiences and better test scenarios. By saying this, I will mention that Cypress will WIN since their documentation is excellent, their community is big, and their youtube videos will explain way more than they have to.

Selenium has a huge community since this is an older tool, and because this tool was the king of automation since you can use multiple programming languages and multiple tools to manage your test scenarios. When it comes to integrations, I will say that the issue here is the incomplete examples that we have online.

At this time cypress will come with several folders & files and as soon as you installed your cypress tool you will be able to configure certain outsource libraries and dependencies. You don’t have to do anything else. Unless you are using a new dependency. This is happening because is an NPM library and not and external software that you have to use.

Browsers

Selenium will be able to use all of them. However, you will have to download their specific drivers and save them inside of your local machine. Cypress will provide you commands to be able to run the test scenarios to be able to complete your task. Also, you will get an opportunity to set up commands, run-commands, or build scripts to use any browsers. In this case, you don’t have to worry about any other file.

Installation

Looking at the installation, you will have to think that if you will be using Selenium, you will have to get Python, Pip, Selenium, Python libraries, and dependencies & all of the internet tools to be able to run a single test.

If you are using cypress, you will only need to download node, create a project with node, and install cypress.

Thank you for your time

Please let me know if you have more questions or concerns and I will be more than happy to help you. Feel free to take a look at my other publications and let me know your thoughts.

*End-Testing Cypress Pipelines| How do I get a job as an engineer? | UX Developer | I am the Engineer that you are looking for | Send Multiple Messages through the Terminal with the iMessage App!*