Web Test Automation: Robot Framework vs Cypress vs Selenium

Ozgur Kaya
Software Testing Bootcamp
2 min readNov 28, 2021

Youtube Webinar Video:

Getting Started:

This document will help you to review popular open-source web automation frameworks such as Selenium Webdriver, RobotFramework and Cypress.

We will make live examples on many subjects such as installation and technology, recording scenarios, running tests, test tracking and reporting, supported platforms, learning curve... Together we will be looking for answers to the questions of which one should we use and when, which one is more suitable for us.

SELENIUM-JAVA-JUNIT PROJECT

Requirements:

  • Java JDK8 Installation

https://www.oracle.com/tr/java/technologies/javase-downloads.html

How to run Junit test on Chrome browser from terminal?

cd $PROJECT_PATH/Selenium-Java-Junit

mvn clean install site -Dbrowser.type=chrome

ROBOT FRAMEWORK-PYTHON3

Requirements:

  • Python3 Installation

https://www.python.org/downloads/

  • Required Python Libraries Installation on Terminal/CMD

pip install robotframework

pip install — upgrade robotframework-pageobjectlibrary

pip install — upgrade robotframework-seleniumlibrary

pip install webdrivermanager

webdrivermanager firefox chrome — linkpath /usr/local/bin

pip install -r requirements.txt

How to run RobotFramework test from terminal?

cd $PROJECT_PATH/robotframework-python3/tests

robot DemoApp.robot

CYPRESS

Requirements:

  • NodeJS Installation

https://nodejs.org/en/download/

Required NodeJS Libraries Installation on Terminal/CMD

npm install cypress

Installing and opening Cypress

Open Cypress application

cd /your/project/path/Cypress-js-mocha

./node_modules/.bin/cypress open

Running locally

cd /your/project/path/Cypress-js-mocha

npx cypress run — browser chrome — headed

--

--