Skip to main content
SeleniumDecoded
All Chapters Chapter 7

Frameworks & Integrations

TestNG, JUnit, pytest, Mocha, NUnit, Cucumber, CI/CD pipelines, Docker, and reporting

  1. 1

    TestNG and JUnit Integration

    Integrate Selenium with TestNG and JUnit test frameworks for structured, maintainable Java tests.

    Selenium 3 & 4 Stable
  2. 2

    pytest Integration

    Build robust Python Selenium tests using pytest fixtures, markers, and plugins.

    Selenium 3 & 4 Stable
  3. 3

    Mocha and Jest

    Set up Selenium tests with Mocha and Jest, the most popular JavaScript testing frameworks.

    Selenium 3 & 4 Stable
  4. 4

    Cucumber and BDD

    Write behavior-driven tests using Cucumber with Gherkin syntax and Selenium.

    Selenium 3 & 4 Stable
  5. 5

    NUnit and MSTest

    Build robust C# Selenium tests using NUnit and MSTest frameworks.

    Selenium 3 & 4 Stable
  6. 6

    CI/CD Pipelines: GitHub Actions, GitLab CI and Jenkins

    Run Selenium suites in CI reliably: headless browsers, Selenium Manager caching, Grid services in pipelines, parallel jobs, artifacts on failure, and the settings that stop CI-only flakiness.

    Selenium 4 Stable
  7. 7

    Docker and Testcontainers

    Run browsers in the official Selenium Docker images, compose a Grid with video recording, and use Testcontainers to start a disposable browser per test from Java, Python, .NET or Node.

    Selenium 4 Stable
  8. 8

    Reporting: Allure, ExtentReports and JUnit XML

    Turn raw test output into reports people read: JUnit XML for CI, Allure for rich history and attachments, ExtentReports for single-file HTML, with screenshots, logs and steps attached automatically.

    Selenium 4 Stable
  9. 9

    Selenium Wrappers and Higher-Level Libraries

    Selenide, WebdriverIO, Robot Framework, SeleniumBase, Nightwatch and Selenium IDE: what each adds on top of WebDriver, what it costs, and how to decide whether raw Selenium is the right level for your team.

    Selenium 4 Stable