Hands up anyone who likes Protractor? Anyone? No?
If you have used Protractor, for any amount of time, you will have experienced these sort of problems…
- Arbitrary timers sprinkled throughout the code
- Webdriver does not wait properly
- Memory leaks
Most teams hack away with protractor until they get sick of it and then they switch. So what are the alternatives?
The Cypress homepage proudly declares: “Test your code, not your patience.“. That pretty much sums up my experience.
Cypress works with any front-end framework or website (Angular, React, Vue etc.) It can do this because it does not use Selenium (Cypress runs in the same loop as the rest of your code).
Cypress includes a pretty slick Test Runner and Dashboard.
There are a couple of versions of Test Cafe so you want to make sure you pick the right one.
- The paid version is expensive but comes with a visual editor (which does not require any coding) and 24/7 support.
- The free version is open source.
Test Cafe supports all the major browsers (Chrome, Safari, FireFox, Edge etc.) and it works on all major platforms (Windows, Mac, Linux etc.)
I like Test Cafe because it is Self-contained – no need for WebDriver or selenium. This makes it quick to set up and less prone to interop bugs.