---
title: A Step-By-Step Guide on How to Integrate Jenkins with Selenium
url: https://www.qatouch.com/blog/integrating-jenkins-with-selenium/
published: 2023-10-11T14:07:50+00:00
modified: 2025-06-24T10:43:37+00:00
author: Premnath M
post_type: post
categories: [Integration Guides]
tags: [Jenkins, Jenkins with Selenium, Selenium]
featured_image: https://www.qatouch.com/wp-content/uploads/2023/10/Jenkins-with-Selenium-1.webp
word_count: 624
reading_time_minutes: 4
---

# A Step-By-Step Guide on How to Integrate Jenkins with Selenium

## **Integrating Jenkins with Selenium**

For many developers, this may imply that their work could be at risk or unreliable without automated testing. Together with an open-source automation server Jenkins and popular Web testing framework Selenium constitute potent tools in handling of testing automation. In this article I’ll guide you, step by step, how to integrate and use Jenkins with Selenium, for a smooth continuous integration and testing process flow.

[![Your test case management, simplified](https://www.qatouch.com/wp-content/uploads/2025/03/Your-test-case-managemnet-simplified-1024x341.webp)](https://register.qatouch.com/?utm_source=organic&amp;utm_medium=banner&amp;utm_campaign=blog_integrating_jenkins_with_selenium_b1)

### **Prerequisites:**

Before diving into the integration, ensure you have the following prerequisites in place:

**Jenkins Installation: **You must install and run Jenkins on a system. You can download it from the official website ([https://www.jenkins.io/download/](https://www.jenkins.io/download/) ) and follow instructions given therein.

**Selenium WebDriver**: You should also install Selenium WebDriver on your machine since it is a browser automation tool. You can install it using a package manager or download it from the official Selenium website (https: //www.selenium.dev/downloads/).

**Java Development Kit (JDK):** Both Jenkins and Selenium are in Java. Ensure that the appropriate JDK is loaded onto your system.

**Related reads: [Windows In Selenium WebDriver](https://www.qatouch.com/blog/frames-and-windows-in-selenium-webdriver/)**

Now that you have the prerequisites in place, let&#8217;s proceed with the integration:

## **Step 1: Install Jenkins Plugins**

The functionalities of Jenkins are enhanced using numerous plugins. To work with Selenium, you&#8217;ll need to install a couple of plugins:

**Selenium Plugin:** Go to Jenkins Plugin Manager and install “Selenium Plugin”. Use this plugin for running Selenium tests on a Jenkins pipeline.

**WebDriver Automation Plugin:** Install the &#8220;WebDriver Automation Plugin&#8221; to enable Selenium WebDriver integration with Jenkins.

**Related: [Selenium WebDriver Tutorial](https://www.qatouch.com/blog/selenium-webdriver-tutorial/)**

## **Step 2: Configure Jenkins**

Once the plugins are installed, you need to configure Jenkins:

Open Jenkins in your web browser.

On the left sidebar, click “Manage Jenkins”.

![Jenkins ](https://www.qatouch.com/wp-content/uploads/2023/10/Dashboard-Jenkins-.png)Navigate to &#8220;**Global Tool Configuration**.&#8221;

![Configure Jenkins](https://www.qatouch.com/wp-content/uploads/2023/10/Global-Tool-Configuration-Jenkins-.png)Under &#8220;**Selenium WebDriver**,&#8221; add the path to your Selenium WebDriver executable.

Save the configuration.

## **Step 3: Create a Jenkins Job**

To automate Selenium tests using Jenkins, you need to create a Jenkins job:

Navigate to the &#8216;New Item&#8217; option on the Jenkins dashboard.

Give your job a name and select &#8220;**Freestyle project**.&#8221;

Under the &#8220;**Build**&#8221; section, click on &#8220;**Add build step**&#8221; and select &#8220;**SeleniumHQ htmlSuite Run.**&#8220;

Configure your Selenium tests by providing the path to your test suite, browser settings, and other relevant details.

Save the job configuration.

## **![Create Jenkins Job](https://www.qatouch.com/wp-content/uploads/2023/10/New-Item-Jenkins-.png)**

## **![Create a Jenkins Job](https://www.qatouch.com/wp-content/uploads/2023/10/Free-Style-Project-Config-Jenkins-.png)**

## **Step 4: Configure Jenkins Build Triggers**

To trigger your Selenium tests automatically, you can set up build triggers. The most common trigger is to run the tests when code is pushed to a specific branch in your version control system (e.g., GitHub). To set up GitHub webhook triggers:

In your Jenkins job configuration, go to the &#8220;**Build Triggers**&#8221; section.

Check the option &#8220;**GitHub hook trigger for GITScm polling**.&#8221;

Save your job configuration.

## **![Configure Jenkins Build Triggers](https://www.qatouch.com/wp-content/uploads/2023/10/Free-Style-Project-Config-Jenkins-2.png)**

## **Step 5: Build and Test**

With everything set up, you can now build and test your Selenium integration with Jenkins:

Click on your Jenkins job from the dashboard.

**Recommended Read: [Selenium With Python Tutorial](https://www.qatouch.com/blog/selenium-with-python-tutorial/)**

Click &#8220;**Build Now**&#8221; to start a manual build, or wait for automatic triggers to initiate the tests.

Jenkins will execute your Selenium tests and display the results in the job console output.

## **![Build and Test](https://www.qatouch.com/wp-content/uploads/2023/10/last-1-1.png)Conclusion**

By integrating Jenkins with Selenium, you will have a seamless testing process in your software development life cycle, making it efficient and automated when it comes to quality assurance. Through this article, we have shown you how this integration can be successful through various important ways. How do you automate your web testing? Set up Jenkins, install needed plugins, configure your environment, create Jenkins jobs for web application reliable. Selenium when merged with Jenkins makes it the ultimate tool in Continuous Integration and Continuous Testing (CI/CT), thereby saving you time and reducing the hassle involved in delivering high quality software. Join The AutoMation Journey With Jenkins &amp; Selenium Today!

[![Deliver projects with confidence](https://www.qatouch.com/wp-content/uploads/2023/06/Deliver-projects-with-confidence-1024x341.webp)](https://register.qatouch.com/?utm_source=organic&amp;utm_medium=banner&amp;utm_campaign=blog_integrating_jenkins_with_selenium_b2)