top of page
hand-businesswoman-touching-hand-artificial-intelligence-meaning-technology-connection-go-

Overview of Selenium


Overview Of Selenium



Selenium Introduction:


Selenium is an open-source framework for testing web applications. The Selenium project is primarily developed by the Selenium HQ, which consists of a group of related software companies and individual contributors.


Selenium automates browsers to simulate real users accessing a website. This tool can be used to perform functional, regression and load tests on the website.


Selenium works with all major browsers on Windows, Mac OS X, Unix and Linux platforms. It supports Internet Explorer, Firefox, Chrome, Safari and Opera with both their graphical and headless versions.


The Selenium architecture consists of the following components:


- Selenium Core: This component provides the API to other components and it's responsible for starting and stopping them, as well as handling errors in all components.

- Client Executables: These are executables that are run on the machine where tests will be executed, so they need to have appropriate drivers installed in order to work with different browsers or devices.

- Server Executables: These are executables that are run on the machine where tests will be executed, so they need to have appropriate drivers installed in order to work with different browsers or devices.


Selenium top features:


Selenium has many top features that make it a powerful tool for web developers and testers. Some of these features are:

- It can be used with any programming language

- It has an intuitive GUI interface

- It can be extended using plugins

- It supports all browsers and all operating systems


Selenium workflow:


1) Selenium IDE - The IDE is used to record and edit code snippets which are then converted into Java code by the Eclipse plugin.

2) WebDriver Client - A client for running browser tests written with the Selenium WebDriver API. This can be run in any programming language that can make an HTTP request, including Python, Ruby, PHP or JavaScript with NodeJS.


The following are the steps in executing Selenium:

1) Create a test case in Selenium IDE

2) Create a suite of tests

3) Execute the tests via Selenium IDE or by using the command line interface

4) Analyze the results of execution




Selenium Project (based out of Maven) Structure:




The following are the methods of Selenium:


- WebDriver - WebDriver is used for automated testing of web applications across multiple browsers. It is often used in conjunction with other tools like Cucumber or Java which are used for acceptance testing.

- Remote Control - Remote control is an extension of WebDriver that allows for remote access to a browser session and provides advanced functionality such as controlling the mouse cursor and keyboard input with scripts written in Java or Python.

- Page Object Model (POM) - The POM organizes elements on the page into logical objects that represent each element on that page.



Selenium Sample execution screen print:




Selenium Test execution console displays:


[RemoteTestNG] detected TestNG version 7.5.0


I am executing before any test method

I am exeuting before group of Smoke

I am executing test case 003

I am executing test case 001

I am executing test case 003

I am exeuting After group of Smoke


===============================================

Vasanthisample

Total tests run: 3, Passes: 3, Failures: 0, Skips: 0

===============================================



Selenium Pros and Cons:


It offers a number of benefits such as:

- The ability to automate tests for end-to-end functionalities

- It can be used with any programming language

- You can use it with any platform or device

However, Selenium has its drawbacks too. It's not an easy tool to master and it requires time and effort to learn.


Conclusion:


Selenium is a suite of tools designed to automate web browsers. Selenium can be used for a variety of purposes, such as test automation, web scraping, and building browser-based applications.

Selenium is one of the most popular testing frameworks for web applications in the market today. Selenium has been developed by Jason Huggins in 2004 and it has been open sourced since 2009. It was originally implemented in Java but now it also supports C# and Python. Selenium supports all major browsers (Chrome, Firefox, Safari, Internet Explorer) and operating systems (Windows XP/7/8/10).

Selenium is an open source project which has been around since 2004. Selenium currently supports all major browsers and operating systems.

71 views0 comments
bottom of page