We use analytics to count visits and form use. It is on unless you reject it. We run no ads.

AQA Virtual Summit/MeetupsTest Automation Tools

Eran Kinsbruner – Realizing the Most Advanced Features of Selenium 4 and Cypress Testing Frameworks

Published 11 May 2022. Updated with a short answer, key takeaways and a FAQ; the talk text is unchanged. Published by Zapple.Tech, founded by the founders of CodeceptJS and Codeception, open-source testing frameworks.

Watch on YouTube
Short answer

In this talk, Eran Kinsbruner compares Selenium 4 and Cypress, covering their key differences, leading capabilities and the benefits of cross-browser testing. He groups web testing tools by protocol, lists Cypress benefits and Selenium 4 features, and concludes that combining the two makes a stronger strategy.

Key takeaways
  • Three dimensions of web testing tools by protocol
  • Benefits and use cases of Cypress
  • Selenium 4 key features
  • Cross-browser testing and combining both frameworks

Eran Kinsbruner, an expert in web and mobile apps continuous testing, DevOps and Agile methods, SAST, and a product marketer with a strong GTM vision, talked about the key differences between Selenium and Cypress, their leading capabilities, and the benefits of cross-browser testing using the low-code methods combined in these frameworks.

When talking about web testing, Eran Kinsbruner always looks at it in three dimensions:

  1. Webdriver protocol (Selenium, Nightwatch, Webdriver.io). These tools are outdated. This is not to say that they are bad, just that they have been used for more than 10 years.
  2. Chrome Debugger protocol (Puppeteer, Playwright) is more advanced.
  3. JavaScript in the same browser tab (Cypress). Works with Chrome, Edge, and Firefox on Windows and Mac but does not support Webkit Safari.

Benefits and Use Cases of Cypress

  • Runs in the browser. It is a robust asynchronous framework based on javascript, the most popular web app development language.
  • Ability to use Stub Navigator APIs. You can receive data from a real-time web app.
  • You can make several retries to avoid instability. This will help classify test cases or just ignore them. This is especially true if you want to, e.g., only test scripts on a specific platform: this is easily done using the Cypress configuration file.
  • Permissibility of switching test environments. This is problematic to do, e.g., in Selenium.
  • Cypress cy.clock and cy.intercept. These network management capabilities can be used to analyze what is happening in your web app in real-time.
  • The framework comes with many plugins and also adds visual testing to its functionality. Cypress allows you not only to take a screenshot, but also to analyze the resulting image, and thus take you to a new level of user experience.

Cypress Plugins

  • Debugging with browser dev tools. This can be done with plugins that just need to be installed.
  • Cypress has continuous integration capabilities. Once you’ve approved your test scripts, you can easily integrate them into Bitbucket, Github, etc.
  • API testing capability. Cypress can be used for functional and non-functional testing.
  • When used for Code Coverage Analysis, the framework provides a good output report and you can analyze all coverage elements.
  • For Accessibility Testing, just install the plugin and you will get a report on your dashboard.
  • The framework is also used for component testing, which allows you to fill in the gaps between unit and integration tests.

Selenium 4 Key Features

  1. Standard W3C implementation for all WebDriver browsers. Can integrate with CDP and block certain content types.
  2. To move from Selenium 3 to Selenium 4 you will only need to make a few code changes.
  3. New, intuitive Grid Architecture.
  4. Support for Relative Locators. You can focus your actions on an element locator based on the relative locator methods.
  5. Support for Multiple Tabs and Windows. Not supported by Cypress.

It is impossible to choose favor of one of these frameworks unambiguously. You can find something useful for yourself in each of them. Some of the features are available in one but not supported in the other, and vice versa. Therefore, combining these frameworks means creating a strong testing strategy for your web apps.

Questions about this talk

What are the key differences between Selenium 4 and Cypress?

Eran Kinsbruner groups tools by approach: Selenium works through the WebDriver protocol, Playwright and Puppeteer through the Chrome Debugger protocol, and Cypress runs JavaScript in the same browser tab. Cypress supports Chrome, Edge and Firefox but not WebKit Safari, while Selenium 4 supports multiple tabs and windows, which Cypress does not.

What are the main features of Selenium 4?

Eran Kinsbruner lists the standard W3C implementation for all WebDriver browsers, few code changes to move from Selenium 3, a new Grid architecture, relative locators, and support for multiple tabs and windows. He says the W3C implementation can integrate with CDP and block certain content types.

Should you choose Selenium or Cypress?

Eran Kinsbruner says it is impossible to choose one framework unambiguously. Some features exist in one but not the other, and vice versa. He concludes that combining the two frameworks builds a strong testing strategy for your web apps, since each covers gaps in the other.

Request a QA audit quote

Tell us what you ship and what worries you.

What happens after you send this

  1. You send the form: your situation and what you need tested, then your name and work email.
  2. Within one business day, we reply with a suggested first step, its scope, timeline and a quote.
  • Fixed scope
  • You decide after each step
  • The tests live in your repository
  • An NDA signed before access

“They helped us to close the positions and consult our team how to proceed further. High-quality quick feedbacks with the deep checking of the required tasks, professional approach, great understanding of the company's technologies and product, detailed reports.”

Kristina Lavrentieva, Manager at keepgo.com, Israel
  • Rated 4.9 out of 5 on Clutch, from 7 client reviews
  • 42 completed test automation and infrastructure projects
  • Founded by the founders of CodeceptJS and Codeception, open-source testing frameworks

Request a QA audit quote

    What is closest to your situation?
    Optional. The product, the platforms, how often you release, what broke last.

    You decide after our reply whether to go ahead.

    Prefer to talk first? Book a call

    One-week QA audit · written report

    Request a QA audit quote