Languages supported by Selenium

Kotlin over Java

What is Selenium?

Selenium automates web applications for testing purposes. Selenium is a combination of tools and domain specific language in order to build & operate functional and tests of web applications. Today we will see languages supported by selenium.

In simple words it is an automation test framework or an API that works with different languages such as Java, C#, Perl, Python, Ruby, PHP, Scala and Groovy. Or simply we can say Selenium is widely used open source, portable software testing framework for web applications.

What Selenium Supports?

Selenium chains programming languages through the use of drivers precise to each language, which offer commands from the Selenium API.

Means programming languages are supported through Selenium “drivers”. These are libraries made for each language that expose commands from the Selenium API natively in the form of functions. Selenium is used for automating web applications for testing purposes, but it does not include a testing framework.

A framework is a collection of programs that do something useful and which you can use to develop your own applications. Normally frameworks are written in a specific programming language. Some testing frameworks that can be used with Selenium are:

1. C#

C# is an object-oriented programming language used with XML- based web services on the .NET platform. Also, it is hybrid of C and C++ developed to compete with Sun’s Java language. Generally, NUnit framework of C# is used in Selenium.

2. Java

The most common Java web frameworks are GWT, JHipster, JSF, play framework, spring boot, spring MVC, struts, etc. A web application framework (WAF) is a software framework that is designed to support the development of web applications including web services, web resources, and web APIs.
JUnit , TestNG frameworks are common in Selenium.

3. JavaScript

The list of JavaScript frameworks includes- AngularJS, React, Ember.js, Vue.js, Mithril.js, Polymer.js, Backbone.js, Node.js, etc. JavaScript framework differs from a JavaScript library in its control flow: a library offers functions to be called by its parent code, whereas a framework defines the entire application design.
The WebDriverJS, WebdriverIO, NIghtwatchJS, NemoJS are available in Selenium.

4. PHP

Laravel: One of the newer frameworks, Symphony, Phalcon, Codeigniter, Cakephp, Zend framework, Fuel PHP, Slim, Phpixie, etc are the top rated PHP frameworks of 2019.
Behat + Mink from PHP framework is used here in Selenium.

5. Python

Python can be used to create websites as well as integrate existing Python code, and work as an alternative to PHP. Some best Python frameworks are CherryPy, Flask, Django, Pyramid, TurboGears, etc.
But in Selenium we have to use pyunit, py.test, robot framework from Python Frameworks.

6. Ruby

Ruby on rails, also known as “ROR” or simply “Rails”, is an open source framework for web development in Ruby, an object-oriented programming (OOP) language similar to Perl and Python.
Rspec is one of the available frameworks in ROR.


NOTE : Also, some more frameworks are used in Selenium that includes Haskell, Objective-C, Perl, R.


Selenium supported browsers and platforms

The following browsers are used for Selenium

  • Firefox: (Support for Firefox is the latest release, the previous release, the latest ESR release and the preceding ESR release. For illustration, Selenium 2.40.0 (released on Feb 19, 2014) supports Firefox 27, 26, 24, 17)
  • Internet Explorer: (Versions 7, 8, 9, 10 and 11 are supported. Version 11 needs additional configuration.
  • Chrome: (Chrome Driver is supported by the Chromium project.
  • Opera: (Opera Driver is supported by the Chromium project)
  • Safari: (Safari Driver requires Safari 5.1+ NOTE due to Apple potentially dropping support Safari 6.X for Windows, new progresses in the bindings may not work in the Windows platform)
operating system supported by selenium

• Microsoft Windows
• Apple OS X
• Linux

For more information: Platforms supported by Selenium

Now we have understood platforms which are supported by Selenium. The platforms excluding above points are not supported by Selenium.

Which language is not supported by Selenium?

Selenium works with many operating systems, browsers, programming languages and testing frameworks. From Windows to Junit. The languages Java, C#, Perl, Python, Ruby, PHP, Scala and Groovy are working with Selenium, others are not compatible till today’s date.

Pranav Sahare

Pranav has been put on board to help out with Research-based Quality Content of the latest technology trends around the world.

You may also like...