Introduction to Automation & Selenium

Selenium Suite Overview (IDE, WebDriver, Grid)

Learning Outcome

4

Differentiate between IDE, WebDriver, and Grid.

3

Understand the components of the Selenium Suite.

2

Understand the purpose of Selenium in Automation Testing

1

Understand  What is Automation Testing

Recall

What is manual  testing?

We know:

How to test  software applications by manual testing approach?

Automation  Testing is a powerful enabler of speed, accuracy, and efficiency in modern software development

 

To do  Testing  with:

But

Faster execution of test cases ,

To achieve Reusability  

To get Higher accuracy  

To Save time & effort  Especially for repetitive tasks.

For Better test coverage

Human errors possible

Challenges:

Time-consuming

Repetitive work

Open Gmail → enter credentials → click login → verify inbox

Automation Approach with Selenium (Robot Tester):

 

Write Selenium script:

Run script on multiple browsers using Selenium Grid

Re-run automatically whenever the app updates

Faster testing

Consistent and accurate results

Tester can focus on more complex tasks like usability or exploratory testing

Outcome:

Why Automation  Testing?

Reduces human errors in repetitive testing.

Ensures web apps work on different browsers and devices

Integrates with CI/CD pipelines for faster release cycles.

Saves effort and resources over multiple testing cycles.

Automates repetitive tasks, running tests much faster than humans.

  Test scripts can be reused across multiple test cycles.

Handles hundreds or thousands of test cases easily.

Why Selenium?

Free and Open Source

No licensing costs, widely supported by the community.

Free and Open Source

Supports Multiple Browsers 

Chrome, Firefox, Edge, Safari, etc.

Free and Open Source

Free and Open Source

Cross-Platform

Works on Windows, macOS, and Linux.

Supports Multiple Languages

Java, Python, C#, Ruby, JavaScript, etc.

Free and Open Source

Cross-Platform

Why Selenium?

Flexible & Extensible

Integrates with frameworks like TestNG, JUnit, and CI/CD tools.

Free and Open Source

Handles Dynamic Web Elements

 Can interact with modern, dynamic web applications.

Free and Open Source

Free and Open Source

Selenium Suite Options 

IDE for beginners, WebDriver for advanced automation, Grid for parallel execution.

Free and Open Source

Selenium

Selenium is a free, open-source automation tool used for testing web applications.

It allows testers to simulate user actions on web browsers—like clicking, typing, and navigating—automatically and accurately.

Chaining API Requests in Postman

API request chaining is a technique where the output of one API request is used as an input for another request and  storing them in variables. 

These variables can then be used in headers, parameters, or request bodies of other API calls.

This approach makes testing smoother and helps simulate real application flows.

For example :

when a user logs in, the system returns an authentication token

This token is then used in other API requests to access protected resources.

Instead of referring this value manually, Postman allows you to capture it automatically and use it in the next requests

 

One of the common ways to implement chaining is through test scripts in Postman.

After a request is executed, a script can capture a value from the response using JavaScript and store it as a variable.

 

let responseData = pm.response.json();
pm.environment.set("userId", responseData.id);

The id returned in the response is stored in an environment variable called userId.

This variable can then be used in the next API request like this:

{{userId}}

 

Identify required values

Extract using scripts

Store as variables

Use in next requests

How it works:

Practical use case - Login token reuse

endpoint

Summary

4

Consists of three main components: IDE, WebDriver, and Grid

3

Selenium is a popular automation tool used for web application testing.

2

Automation Testing is fast, accurate, reusable, and ideal for repetitive tasks

1

Manual Testing is slow and error-prone but useful for exploratory testing.

Quiz

What is the main purpose of using Environments in Postman?

A.Create API request

B.Store variable values that may change across setups

C.Run automated UI tests

D.Design API documentation

What is the main purpose of using Environments in Postman?

A.Create API request

B.Store variable values that may change across setups

C.Run automated UI tests

D.Design API documentation

Quiz-Answer

Selenium Suite Overview (IDE, WebDriver, Grid)

By Content ITV

Selenium Suite Overview (IDE, WebDriver, Grid)

  • 1