Overview of naming conventions
In this Selenium tutorial, we learn about the prerequisites of Selenium testing and their installation. The prerequisites include Java Development Kit, an ID. Selenium IDE. Selenium IDE is a Chrome and Firefox plugin which records and plays back user interactions with the browser. Use this to either create simple scripts or assist in exploratory testing. Download latest released version for Chrome or for Firefox or view the Release Notes. Download previous IDE versions here.
- GeckoDriver is the library you need to download to be able to use Selenium WebDriver with Firefox. These are the Selenium Bindings.
- Marionette is the protocol which Firefox uses to communicate with GeckoDriver. Installed by default with Firefox.
- FirefoxDriver is the former name of GeckoDriver.
Ways to install GeckoDriver:
- The easiest way to install GeckoDriver is to use a package manager like brew or npm such as
npm install geckodriver
. This method requires you some package manager installed but you probably should anyways. - Run Firefox and GeckoDriver in a container using Docker. Simply download the combined container, start it and point your code at the right address. I’ve written about how to do this using Chrome, should be very similar to do Firefox.
- Specify it in your Selenium setup code. If you go this route, you can include ChromeDriver as well.
- Download the driver and add its location to your System PATH. These instructions are for Chrome but should work for GeckoDriver as well.
Once this is done, it should work like nothing has changed. The big advantage is you’ll now be able to use Firefox browsers newer than 46!
Install Python:
If you are using a Linux machine then you have already installed Python, so only Windows users need to download and install Python. For this, go the following URL, download the latest Python (I am using 2.7.x) and install it:
Install PIP:
If you already have Python installed in you system, then you have PIP but you need to update it.
To install pip, securely download get-pip.py.
Run the file, it will update PIP.
Make Python Executable via CMD:
Now to make python executable via windows command line, you need to add environment variable, For this go to My Computer Properties > Click Advanced System Settings > click Environment Variables.. > select PATH and click Edit.
![Selenium Firefox Driver Mac Download Selenium Firefox Driver Mac Download](/uploads/1/2/6/7/126777509/703858974.png)
Here, add “C:Python27″ and “C:Python27Scripts” by clicking New. If any of them are already exist then no need to add again. Now press OK for everything.
Now close and open the CMD. You can now able to run python files from command prompt by typing ‘python test.py’ where test.py is a python script.
Please Note: Sometimes the PC may need to logoff and then login again to take effect this new installation.
Install Selenium
For installing Selenium first,
![Firefox Firefox](/uploads/1/2/6/7/126777509/229610399.png)
Open the CMD.
go to python script directory by typing:
Now install Selenium:
Selenium Firefox Driver
It will appear like bellow after successful completion:
Install Chrome Driver:
To install Chrome driver you need to installed the Chrome browser in your system.
Now, download the latest chrome driver from the official page: https://sites.google.com/a/chromium.org/chromedriver/downloads
C# Selenium Firefox Driver
To download the latest Firefox (Gecko dirver) download the latest form here: http://www.seleniumhq.org/download/
Unzip it and copy the chromedriver.exe file to “C:Python27” location.
Please Note: While updating any driver (Chromedriver, Firefox Gecko driver) you need to copy the latest driver.exe file to this same location and replace the old one with new one.