How To Install firefoxdriver on Ubuntu 20.04
Introduction
In this tutorial we learn how to install firefoxdriver on Ubuntu 20.04.
What is firefoxdriver
firefoxdriver is:
WebDriver is designed to provide a simpler, more concise programming interface in addition to addressing some limitations in the Selenium-RC API. Selenium-WebDriver was developed to better support dynamic web pages where elements of a page may change without the page itself being reloaded. WebDriver’s goal is to supply a well-designed object-oriented API that provides improved support for modern advanced web-app testing problems.
There are three methods to install firefoxdriver on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install firefoxdriver Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install firefoxdriver using apt-get by running the following command:
sudo apt-get -y install firefoxdriver
Install firefoxdriver Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install firefoxdriver using apt by running the following command:
sudo apt -y install firefoxdriver
Install firefoxdriver Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install firefoxdriver using aptitude by running the following command:
sudo aptitude -y install firefoxdriver
How To Uninstall firefoxdriver on Ubuntu 20.04
To uninstall only the firefoxdriver package we can use the following command:
sudo apt-get remove firefoxdriver
Uninstall firefoxdriver And Its Dependencies
To uninstall firefoxdriver and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove firefoxdriver
Remove firefoxdriver Configurations and Data
To remove firefoxdriver configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge firefoxdriver
Remove firefoxdriver configuration, data, and all of its dependencies
We can use the following command to remove firefoxdriver configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge firefoxdriver
References
Summary
In this tutorial we learn how to install firefoxdriver package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.