Skip to content

Automation plugin that detects and terminates leftover WebDriver processes (like ChromeDriver), helping maintain clean test environments and reliable CI/CD pipelines.

Notifications You must be signed in to change notification settings

CoedotzMagic/KillWebDriver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KillWebDriver

QA Dependency Plugin for Killing WebDriver Processes is a lightweight and efficient tool designed for QA teams and automation engineers who need full control over lingering WebDriver sessions. This plugin automatically detects and terminates running WebDriver processes—such as ChromeDriver, GeckoDriver, and others—that often remain active after automated test runs.

By using this plugin, you can avoid port conflicts, reduce flakiness in test pipelines, and maintain a clean and stable testing environment. It integrates seamlessly with CI/CD tools like Jenkins, GitLab CI, and works with popular test frameworks such as Selenium, WebDriverIO, and Cypress (when managing external WebDriver processes).

Key Features

  • Automatically kills leftover WebDriver processes (e.g., ChromeDriver, GeckoDriver)
  • Prevents test failures caused by hanging driver instances or port conflicts
  • Easily integrates into CI/CD pipelines and test automation environments
  • Cross-platform support: Windows, macOS, and Linux
  • Ideal for QA teams working with Selenium-based frameworks

How to Use

new com.coedotzmagic.killwebdriver.KillProcessWebDriver();

  or
  
new KillProcessWebDriver();

Example

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import com.coedotzmagic.qatools.util.BrowserHelper;
import com.coedotzmagic.qatools.util.DriverHelper;

public class TestLab {
    public static void main(String[] args) {
        new KillProcessWebDriver();
        WebDriver driver = new ChromeDriver();
        DriverHelper.SetWebDriver(driver);

        BrowserHelper.OpenBrowser("https://coedotzmagic.com");
        BrowserHelper.CloseBrowser();
        new KillProcessWebDriver();
    }
}

About

Automation plugin that detects and terminates leftover WebDriver processes (like ChromeDriver), helping maintain clean test environments and reliable CI/CD pipelines.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages