Installing Selenium libraries

Setting up the Selenium library for your favourite programming language.

Page being translated from English to Spanish. Do you speak Spanish? Help us to translate it by sending us pull requests!

First you need to install the Selenium bindings for your automation project. The installation process for libraries depends on the language you choose to use.


Installation of Selenium libraries for Java can be done using Maven. Add the selenium-java dependency in your project pom.xml:


The selenium-java dependency supports running your automation project with all Selenium supported browsers. If you want to run tests only in a specific browser, you can add the dependency for that browser in your pom.xml file. For example, you should add following dependency in your pom.xml file to run your tests only in Firefox:


In a similar manner, if you want to run tests only in Chrome, you should add the following dependency:



Installation of Selenium libraries for Python can be done using pip:

pip install selenium

Alternatively you can download the PyPI source archive (selenium-x.x.x.tar.gz) and install it using

python install


Installation of Selenium libraries for C# can be done using NuGet:

# Using package manager
Install-Package Selenium.WebDriver
# or using .Net CLI
dotnet add package Selenium.WebDriver


Installation of Selenium libraries for Ruby can be done using gem:

gem install selenium-webdriver


Installation of Selenium libraries for JavaScript can be done using npm:

npm install selenium-webdriver


Due to missing native language bindings for Kotlin, you have to use the Java Bindings, e.g. with maven Java

Última modificación October 19, 2021: Updated translation for PT-BR (#807)[deploy site] (0a15bd7)