1. Home
  2. Docs
  3. Selenium WebDriver &#8211...
  4. Selenium Infrastructure

Selenium Infrastructure

To develop automated tests using Selenium and not only the tests, but some other scenarios that pursue another goal, you must first prepare the necessary infrastructure.

The key elements of this infrastructure are determined by how the selenium tool is integrated with browsers.

  1. Browser(s).

    First, you need to have browsers installed, Selenium does not contain browsers, it uses browsers that are already installed on the system. Chrome, Firefox, Internet Explorer most common browsers that we are going to use in this documentation.

  2. Browser Drivers

    Secondly, for each browser you need an additional auxiliary executable file, for Chrome – chromedriver, for Firefox geckodriver, for Internet Explorer – IEDriverServer and so on.
    It is useful to download all the drivers and put them in a separate folder for ease of access. For example, C:\Tools
    Download browser drivers on Selenium HQ website at https://www.seleniumhq.org/download/

  3. Language-specific Client Libraries

    Thirdly, in order to create tests in a specific programming language, we need a client library for that language that will connect to auxiliary executable files and control the browser through them. Each programming language has its own client library.
    In this tutorial, we will be creating scripts using C#, Java, and Python. Language-specific libraries for these languages can be downloaded at https://www.seleniumhq.org/download/

    Please see tutorials for each language which will provide details regarding the installation of Language-specific libraries.

    NOTE: Each programming language, usually has a standard package repository to distribute libraries, and client libraries for Selenium are distributed through these standard package repositories.

    For example, in Visual Studio, C# Selenium libraries are distributed through NuGet Package Manager.

    Select Installation Packages
  4. Interpreter or compiler for your language.

    • Java
    • Install .NET for C# (Installing Visual Studio should take care for installing all the necessary files)
    • Install Python
  5. Integrated Development Environment (IDE)

    • Visual Studio for C#
      Eclipse or IntelliJ IDEA for Java/Python/JavaScript/Ruby
  6. Language compiler and dependencies manager

  7. Test Framework

    The Test Framework will allow test execution and result generation.

How can we help?