Installing_Robot_Framework

Installing Robot Framework

Since Robot Framework is built on Python, you’ll first need to install Python before installing Robot Framework itself. In this guide, we’ll walk through installing Python, verifying your installation, installing Robot Framework with pip, and confirming everything works correctly.

Prerequisites

Before installing Robot Framework, ensure you have:

  • Administrator or sudo access to your computer
  • An internet connection
  • A terminal or command prompt
  • Basic familiarity with command-line commands

Step 1: Install Python

Robot Framework requires Python to run. If you already have Python installed, you can skip to the next section.

Download the latest stable version of Python from the official Python website:

Official Python Downloads

Python Downloads

The Python download page automatically detects your operating system and recommends the appropriate installer.

Installing Python on Windows

  1. Download the latest Windows installer.
  2. Run the installer.
  3. Check the box labeled “Add Python to PATH.”
  4. Click Install Now.
  5. When prompted, click Disable path length limit.
  6. Finish the installation.

Important: Selecting Add Python to PATH allows you to run Python and pip from any Command Prompt or PowerShell window.


Installing Python on macOS

There are two common methods:

Option 1: Official Installer

Download the latest macOS installer from the official Python website and follow the installation wizard.

Option 2: Homebrew

If you use Homebrew, run:

brew install python

Installing Python on Linux

Most Linux distributions already include Python.

To verify:

python3 --version

If Python is not installed, install it using your distribution’s package manager.

Ubuntu/Debian:

sudo apt update
sudo apt install python3 python3-pip

Fedora:

sudo dnf install python3 python3-pip

Step 2: Verify Python Installation

Open your terminal or command prompt.

Run:

python --version

or

python3 --version

You should see output similar to:

Python 3.x.x

Next, verify pip:

pip --version

or

pip3 --version

If both commands return version information, you’re ready to install Robot Framework.


Step 3: Install Robot Framework

Installing Robot Framework is straightforward using pip.

Run:

pip install robotframework

If your system uses Python 3 explicitly:

pip3 install robotframework

Wait for the installation to complete.


Step 4: Verify Robot Framework Installation

After installation, verify that Robot Framework is available.

Run:

robot --version

Example output:

Robot Framework 7.x (Python 3.x)

If you see the version number, Robot Framework has been installed successfully.


Optional: Install SeleniumLibrary

If you plan to automate web applications, you’ll also need SeleniumLibrary.

Install it using:

pip install robotframework-seleniumlibrary

You will also need a supported web browser and the appropriate browser driver (or Selenium Manager in newer Selenium releases) for browser automation.


Common Installation Issues

‘python’ is not recognsized

This usually means Python was not added to your system PATH.

Reinstall Python and ensure Add Python to PATH is selected during installation.


‘pip’ is not recognized

Try:

python -m pip --version

or

python3 -m pip --version

If pip is missing, reinstall Python or install pip for your operating system.


‘robot’ is not recognized

Robot Framework may not have been installed successfully, or Python’s Scripts directory isn’t in your PATH.

Try reinstalling:

python -m pip install robotframework

Then verify again:

robot --version

Conclusion

Installing Robot Framework is a straightforward process once Python is available on your system. With just a few commands, you can set up a complete automation environment and start creating your first test cases.

In the next tutorial, we’ll explore the Robot Framework project structure, explain the purpose of each file and folder, and show how to organize automation projects using industry best practices.

Related Articles

✓ Complete Robot Framework Tutorial

✓ What is Robot Framework

✓ Robot Framework Architecture Explained


Discover more from Rotebit

Subscribe to get the latest posts sent to your email.

5 Comments

Leave a Reply