Setting up the Selenium library for your favourite programming language.
Selenium supports automation of all the major browsers in the market through the use of WebDriver. WebDriver is an API and protocol that defines a language-neutral interface for controlling the behaviour of web browsers. Each browser is backed by a specific WebDriver implementation, called a driver. The driver is the component responsible for delegating down to the browser, and handles communication to and from Selenium and the browser.
This separation is part of a conscious effort to have browser vendors take responsibility for the implementation for their browsers. Selenium makes use of these third party drivers where possible, but also provides its own drivers maintained by the project for the cases when this is not a reality.
The Selenium framework ties all of these pieces together through a user-facing interface that enables the different browser backends to be used transparently, enabling cross-browser and cross-platform automation.
Selenium setup is quite different from the setup of other commercial tools. To use Selenium in your automation project you need to install the language bindings libraries for your language of choice. In addition you will need WebDriver binaries for the browsers you want to automate and run test on.
Installing Selenium can be divided in three steps:
- Installing the Selenium library for your desired programming language
- Set up the browser driver to automate your browser (e.g. GeckoDriver for Firefox)
- (Optional) Set up and configure Selenium Grid if you want to scale up your tests
If you wish to start with a low-code/record and playback tool, please check Selenium IDE
Setting up your browser to be automated.