Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.72 KB

File metadata and controls

36 lines (28 loc) · 1.72 KB

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();
    }
}