Getting Started

Selenium WebDriver is a popular open-source web application automation tool.  Selenium is used as a functional automation tool to automate web application testing. Selenium automated web browsers.





JSON Wire Protocol

Page Objects

Selenium RemoteWebDriver

Taking Screenshot

To get started, let’s use this article to demonstrate a specifically customized screenshot capture feature in the TestNG Automation framework. An awesome capability is to capture screenshots when an Assert fails with TestNG Framework. You can write custom assertions in TestNG by overriding the onAssertFailure() method in the Assert lifecycle.

How to Take Screen Shot with TestNG when an Assert fails

Sample Selenium Framework

Selenium Grid 3.0

We can use the Selenium grid for distributed testing. A distributed test distributes tests across multiple physical and/or VM’s so that tests can run in parallel. Distribution of tests cuts down the time required for running tests

Selenium Hub Configuration


Selenium Grid Standalone

Run Grid in Background on Linux

Selenium Grid 4.0

Selenium 4 Grid Components

Distributed Mode

Running Tests

Running a sample Selenium WebDriver test in the Google Chrome browser.

Cloud Tests

Running Tests on BrowserStack

BrowserStack is a live cloud-based browser testing on real desktop and mobile browsers. You can say goodbye to your lab devices and virtual machines if you use BrowserStack.

Running BrowserStack Test – Basics

Running Tests on SauceLabs

Docker Images

Run Test on Docker Container

Selenium Grid with Docker Images

Scalable Selenium Grid with Docker