Tool comparisons

Best Test Automation Frameworks in 2026: 10 Compared (With Code)

Aslam KhanAslam Khan 16 min read
Code editor displaying react source code — Best Test Automation Frameworks in 2026

Your team has to pick a framework this quarter. One engineer wants Playwright, the front-end lead likes Cypress, the QA team already knows Selenium, and someone asked whether an AI platform would make the whole debate go away. Every "top 10" list you open names the same tools in a different order, with no reason given for the order.

This guide ranks them by a number you can check yourself, then shows real code and an honest picker.

Updated December 2026

The best test automation frameworks in 2026 are Playwright, Cypress and Selenium for web UI, Appium and WebdriverIO for mobile, pytest, JUnit 5 and TestNG as test runners, and Robot Framework and Cucumber for keyword and BDD tests. By GitHub stars, Playwright is the most popular by a wide margin, ahead of Cypress and Selenium.

Looking for the definition, components and the six framework types (linear, modular, data-driven, keyword, BDD, hybrid)? Read What Is a Test Automation Framework? 6 Types With Examples.

Key takeaways

  • Playwright leads on GitHub stars (about 101,700 on 3 Dec 2026), roughly twice Cypress and three times Selenium.
  • Stars measure developer interest, not installed base. Selenium still runs a very large share of existing enterprise suites.
  • Most teams need more than one framework: one for web UI, one for API or unit tests, and one for native mobile if they ship apps.
  • If nobody on the team writes code, a plain-language platform can replace the web UI framework, but not every layer.

By Robonito Engineering Team · Updated December 2026 · 20 min read


Quick stats

FactSource
Playwright surpassed Selenium in weekly npm downloads in 2024 and holds the lead in 2026npm trends
40-60% of automation effort goes to test maintenance without self-healingCapgemini World Quality Report 2025
No-code automation adoption grew 340% from 2023 to 2026Gartner
Teams using AI test platforms deploy 2.4× more frequentlyDORA State of DevOps 2025
The average engineering team uses 3-5 automation frameworks across their full stackWorld Quality Report 2025

Table of Contents

  1. What are the most popular test automation frameworks in 2026?
  2. What should a framework choice decide?
  3. What changed in the framework landscape in 2026?
  4. Web UI frameworks: the complete comparison
  5. Playwright: the 2026 engineering standard
  6. Robonito: plain-language testing with AI agents (our product)
  7. Cypress: JavaScript-first developer testing
  8. Selenium: the legacy reference
  9. API testing frameworks
  10. Mobile testing frameworks
  11. BDD frameworks
  12. Performance testing frameworks
  13. Which framework should you pick?
  14. Building a multi-framework testing stack
  15. Frequently asked questions

·


There is no official usage census for test automation frameworks, so most "most popular" lists are opinion. We used one number anyone can check: GitHub stars on each framework's main repository, read on 3 December 2026 and rounded to the nearest hundred. Each count links to the repository so you can see today's figure.

RankFrameworkWrite tests inTest typesLicenseGitHub stars (3 Dec 2026)
1PlaywrightTypeScript/JavaScript, Python, Java, .NETWeb E2E across Chromium, Firefox and WebKit; APIApache-2.0~101,700
2CypressJavaScript/TypeScriptWeb E2E, component, API calls via cy.requestMIT~51,100
3SeleniumJava, Python, C#, Ruby, JavaScriptWeb browser automationApache-2.0~34,600
4AppiumJava, Python, JavaScript, C#, Ruby (client libraries)Native, hybrid and mobile web apps on iOS and AndroidApache-2.0~22,300
5pytestPythonUnit, integration, API; runner for UI tests via pluginsMIT~14,900
6Robot FrameworkKeyword syntax, libraries in PythonKeyword-driven acceptance tests for web, API, mobile and desktop via librariesApache-2.0~12,000
7WebdriverIOJavaScript/TypeScriptWeb, native and hybrid mobile apps, desktop appsMIT~9,900
8JUnit 5Java, KotlinUnit and integration; common runner for Selenium and REST AssuredEPL-2.0~7,100
9CucumberGherkin + Java, JavaScript, Ruby and moreBDD acceptance testsMIT~5,400 (JS), ~2,800 (JVM)
10TestNGJavaUnit, integration, data-driven runs; common Selenium runnerApache-2.0~2,100
—Robonito (our product)Plain English, recordings or no-code stepsWeb on every plan; mobile, desktop and API on Pro and EnterpriseCommercial (Free plan available)Not ranked: not an open-source repository

How to read this table honestly:

  • Stars measure interest, not usage. A star is a bookmark. Newer, JavaScript-heavy projects collect stars faster than older Java tools that most teams pull from Maven without ever visiting GitHub. Selenium and TestNG run far more existing suites than their star counts suggest.
  • Cucumber is split across repositories. We show its two largest implementations separately rather than adding them up.
  • We left out unit-only runners. Jest has about 45,500 stars (jestjs/jest) and is used everywhere for JavaScript unit tests, but it is not usually the framework teams mean when they search for test automation.
  • Popular is not the same as right for you. Use section 13 to match a framework to your team.

2. What should a framework choice decide?

This guide compares the tool frameworks themselves. If you need the definition first, or want to know how to structure tests on top of a tool (modular, data-driven, keyword-driven, BDD or hybrid), read what a test automation framework is and its six types.

When you pick among automated testing frameworks, you are really deciding:

Framework choice determines:
├── Who can write tests
│   (Python engineers, JS developers, non-technical QA, anyone)
│
├── What can be tested
│   (Web UI, API, native mobile, desktop, visual regression)
│
├── How maintainable tests are
│   (How often they break when the app changes)
│
├── How fast feedback arrives
│   (10-second unit tests vs 45-second E2E tests)
│
├── What CI/CD integration looks like
│   (Native actions vs custom configuration)
│
└── Total cost of ownership
    (Free OSS, per-seat SaaS, enterprise licensing)

3. What changed in the framework landscape in 2026?

Playwright replaced Selenium as the default web automation framework for new projects. Selenium still runs a huge volume of existing tests; years of corporate investment in Java and C# suites will not disappear. But for new projects in 2026, Playwright is the usual starting point, thanks to its bundled WebKit engine, auto-waiting, multi-language API and built-in test runner.

AI moved into the frameworks themselves. Playwright now ships Test Agents: a planner that explores your app and writes a test plan, a generator that turns the plan into test files, and a healer that replays failing tests and proposes fixes. Plain-language platforms such as Robonito go further and let people who don't write code describe tests in English. See our list of the best AI software testing tools for that category.

The test stack became multi-framework by default. Most mature stacks use different frameworks for different surfaces: Playwright or a plain-language platform for web E2E, pytest for API, Detox or XCUITest for native mobile, k6 for performance. "One framework for everything" is usually the wrong question. The right question is "which framework for which surface?"


4. Web UI frameworks: the complete comparison

FrameworkHow you write testsBrowsersMobileAPISelf-healingCost (Dec 2026)Best for
PlaywrightCode: TS/JS, Python, Java, .NETChromium, Firefox, WebKitEmulation only✅Healer agent (opt-in)Free, open sourceEngineering teams, cross-engine web
CypressCode: JS/TSChrome-family, Firefox; WebKit experimental❌✅ cy.request—Free Starter; Cloud Team from $67/mo ($799/yr)Front-end JS teams
SeleniumCode: Java, Python, C#, Ruby, JSChrome, Firefox, Edge, SafariVia Appium❌❌Free, open sourceMax language choice, existing suites
WebdriverIOCode: JS/TSAll major browsersNative and hybrid apps via Appium❌—Free, open sourceOne JS framework for web + mobile
TestCafeCode: JS/TSAll modern, incl. SafariRemote mobile browsers❌❌Free, open sourceSimple web E2E setup
KatalonNo-code, low-code, Groovy/JavaMajor browsersNative via Appium✅ REST/SOAP/GraphQL✅ paid plansFree plan; Professional $1,800/seat/yrMixed-skill teams, one IDE
mablLow-code with AI agentsAll majorNative (add-on)✅✅Pricing on requestEnterprise web + API + mobile
Robonito (ours)Plain language with AI agents, recordings or no-code stepsWeb on every planNative Android and iOS on Pro✅ on Pro✅ every planFree plan; Starter $20/moTeams without automation engineers

Prices change often; these are the cheapest published plans as of December 2026. For a deeper look at the code frameworks' trade-offs, see our guides to Playwright alternatives and Selenium alternatives.


Playwright vs Cypress vs Robonito

For most teams evaluating modern web automation, the decision comes down to Playwright, Cypress or a plain-language platform like Robonito.

AreaPlaywrightCypressRobonito (ours)
Coding requiredYesYesNo (low-code extensions optional)
LanguagesTS/JS, Python, Java, .NETJavaScript/TypeScript onlyPlain English
WebKit/Safari engineYes, bundledExperimentalNot covered here
API testingYesVia cy.requestYes, on Pro (Postman import)
Self-healingHealer agent (opt-in AI)—Built in, healed steps logged
Tests live in your repo as codeYesYesNo by default; can export executable code
CostFreeFree; Cloud from $67/moFree plan; Starter $20/mo
Best forEngineersJS teamsMixed teams

Quick recommendation

  • Choose Playwright if your team writes code and wants flexibility, multi-language support and all three browser engines.
  • Choose Cypress if developers own testing and your stack is entirely JavaScript or TypeScript.
  • Choose Robonito if your testers don't write code and maintenance is your biggest cost.

5. Playwright: the 2026 engineering standard

playwright.dev · Open source · Free · TypeScript/JavaScript/Python/Java/C#

Playwright is the default choice for engineering teams building automated web tests in 2026. It has a cleaner API than Selenium, bundled cross-browser support including WebKit (Safari's engine), built-in auto-waiting that removes most explicit wait code, and bindings for the main backend languages.

The four Playwright capabilities that distinguish it from Selenium:

// playwright vs selenium: side by side comparison

// --- CAPABILITY 1: Auto-waiting ---

// Selenium: must write explicit waits for every interaction
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10));
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
WebElement button = wait.until(
    ExpectedConditions.elementToBeClickable(By.id("submit"))
);
button.click();

// Playwright: auto-waits for actionability automatically
await page.getByRole('button', { name: 'Place order' }).click();
// Waits for: visible, enabled, stable, not obscured, no code required

// --- CAPABILITY 2: Bundled WebKit (Safari's engine) ---

// Selenium: Safari testing needs SafariDriver on macOS or a device cloud
// Playwright: WebKit included free in the framework
{ name: 'webkit', use: { ...devices['Desktop Safari'] } }
// WebKit engine, runs on Ubuntu CI, zero extra cost

// --- CAPABILITY 3: API testing alongside UI ---

// Selenium: no API client, needs a separate tool
// Playwright: first-class API testing in the same test file
test('UI + API cross-layer assertion', async ({ page, request }) => {
  // UI interaction
  await page.goto('/checkout');
  await page.getByRole('button', { name: 'Place order' }).click();
  const orderNum = await page.getByTestId('order-number').textContent();
  const orderId = orderNum!.replace('ORD-', '');

  // API verification: same test file, no extra tool
  const response = await request.get(`/api/v1/orders/${orderId}`);
  expect(response.status()).toBe(200);
  const order = await response.json();
  expect(order.status).toBe('pending');
});

// --- CAPABILITY 4: Multi-tab testing ---

// Selenium: switch window handles manually
// Playwright: wait for the new page event with a clean async API
const [authTab] = await Promise.all([
  context.waitForEvent('page'),
  page.getByRole('button', { name: 'Continue with Google' }).click()
]);
await authTab.waitForLoadState();
await expect(authTab).toHaveURL(/accounts\.google\.com/);

Complete working Playwright test, production quality:

// tests/e2e/checkout.spec.ts: real world Playwright test

import { test, expect } from '@playwright/test';

test.describe('Checkout: critical regression', () => {

  test.beforeEach(async ({ page }) => {
    // API authentication: faster than UI login
    await page.request.post('/api/auth/login', {
      data: { email: 'test@example.com', password: 'TestPass2026!' }
    });
    await page.goto('/products/widget-pro');
  });

  test('completes purchase successfully', async ({ page, browserName }) => {
    await page.getByRole('button', { name: 'Add to cart' }).click();
    await expect(page.getByTestId('cart-count')).toHaveText('1');

    await page.getByRole('link', { name: 'Checkout' }).click();
    await page.getByLabel('Full name').fill('Jane Smith');
    await page.getByLabel('Email').fill('jane@test.com');
    await page.getByLabel('Street address').fill('123 Test St');
    await page.getByLabel('City').fill('Austin');
    await page.getByLabel('ZIP code').fill('73301');
    await page.getByLabel('Card number').fill('4242424242424242');
    await page.getByLabel('Expiry').fill('12/28');
    await page.getByLabel('CVC').fill('123');
    await page.getByRole('button', { name: 'Place order' }).click();

    await expect(
      page.getByRole('heading', { name: 'Order confirmed' })
    ).toBeVisible({ timeout: 15000 });

    const orderNum = await page.getByTestId('order-number').textContent();
    expect(orderNum).toMatch(/^ORD-\d{8}$/);
    console.log(`✅ Checkout passed on ${browserName}`);
  });
});

Playwright configuration, cross-browser from day one:

// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
  testDir: './tests',
  timeout: 30000,
  retries: process.env.CI ? 1 : 0,
  use: {
    baseURL: process.env.BASE_URL || 'http://localhost:3000',
    screenshot: 'only-on-failure',
    video: 'retain-on-failure',
  },
  projects: [
    { name: 'chromium', use: { ...devices['Desktop Chrome'] } },
    { name: 'webkit',   use: { ...devices['Desktop Safari'] } },
    { name: 'firefox',  use: { ...devices['Desktop Firefox'] } },
    { name: 'mobile',   use: { ...devices['iPhone 14'] } },
  ],
});

Honest limitations: Playwright requires coding in TypeScript, JavaScript, Python, Java or C#. QA analysts who don't code cannot write Playwright tests without training. Its healer agent can propose fixes for broken tests, but it is an opt-in AI workflow you set up and review, not automatic self-healing on every run. Locator maintenance is still the main ongoing cost, and the main reason some teams look at alternatives.

Best for: Engineering-led QA teams, teams needing WebKit/Safari coverage, Python or Java backend teams, teams wanting API + UI from one free framework.

See how it compares head to head in Robonito vs Playwright.


6. Robonito: plain-language testing with AI agents (our product)

robonito.com · Free plan · No coding required · Self-healing on every plan

Robonito is an agentic QA platform rather than a code library. AI agents create, run and maintain end-to-end tests, so the people who know the product best can automate it without writing code.

How it differs from a scripted framework:

Scripted framework (Playwright, Selenium, Cypress):
  Engineer writes locators → writes waits → writes assertions
  When UI changes: engineer updates locators (or reviews a healer agent's patch)

Robonito:
  Tester describes the test in plain English, records a flow in the desktop app,
  or builds it from reusable no-code steps
  → AI agents work through the app step by step and build the test
  When UI changes: steps adapt to new labels, layouts or locators,
  and each healed step is logged for review

What you get, by plan:

CapabilityPlan
Web test automation, plain text to test case and Autopilot, self-healingEvery plan, including Free
CI/CD (Jenkins, GitHub Actions, GitLab CI, Azure DevOps, CircleCI), Jira and SlackStarter and above
Mobile app testing (Android and iOS), desktop app testing, API testing (with Postman collection import)Pro and Enterprise
Chatbot, voice agent and IVR testing; load testingPro and Enterprise

AI Studio can also generate tests from requirement documents, Jira stories and epics, Swagger/OpenAPI definitions and the live app. Every run keeps video, network traces and an AI root cause for failures. You can schedule test plans to run on their own, or generate executable code for your test cases and run it in any CI tool.

Honest limitations: Robonito is not open source, and tests don't live in your Git repository as code by default, so teams that want every test reviewed in pull requests will find Playwright or Cypress a more natural fit. The Free plan covers web only; mobile, desktop and API testing need Pro. Very custom assertions and test logic call for the low-code extensions or a code framework. If your team is all engineers who enjoy writing tests, you may not need it at all.

Best for: Teams with QA analysts who don't write code, teams whose suites spend more time being repaired than run, and teams that want web, mobile and API tests in one place.

·


7. Cypress: JavaScript-first developer testing

cypress.io · Open source core · JavaScript/TypeScript

Cypress is the right framework when developers own tests alongside QA and everyone writes JavaScript. Its interactive runner with time-travel debugging, where every step is captured with a DOM snapshot you can click back to, is the feature its users mention most.

A Cypress strength: network spying and stubbing inside the test

Both Cypress (cy.intercept) and Playwright (page.route) can intercept and change network traffic. Cypress makes it especially easy to spy on a request and assert on its payload:

// cypress/e2e/checkout.cy.js

describe('Checkout with payment API validation', () => {
  it('verifies exact API payload sent to payment processor', () => {
    // Intercept and spy on the payment API call
    cy.intercept('POST', '/api/v1/payments').as('paymentCall');

    cy.visit('/checkout');
    cy.get('[data-testid="card-number"]').type('4242424242424242');
    cy.get('[data-testid="expiry"]').type('12/28');
    cy.get('[data-testid="cvc"]').type('123');
    cy.get('[data-testid="place-order"]').click();

    // Verify exact request payload
    cy.wait('@paymentCall').then((interception) => {
      expect(interception.request.body.currency).to.equal('USD');
      expect(interception.request.body.capture_method).to.equal('automatic');
      expect(interception.request.body.amount).to.be.greaterThan(0);
      expect(interception.response.statusCode).to.equal(201);
    });

    cy.get('[data-testid="confirmation"]').should('be.visible');
  });

  it('handles declined card without calling payment processor twice', () => {
    let callCount = 0;
    cy.intercept('POST', '/api/v1/payments', (req) => {
      callCount++;
      req.reply({ statusCode: 402, body: { error: 'card_declined' } });
    }).as('declinedPayment');

    cy.visit('/checkout');
    cy.get('[data-testid="card-number"]').type('4000000000000002');
    cy.get('[data-testid="place-order"]').click();

    cy.wait('@declinedPayment');
    cy.get('[role="alert"]').should('contain', 'declined');
    cy.url().should('include', '/checkout');

    // Verify payment API was called exactly once (not retried)
    cy.then(() => expect(callCount).to.equal(1));
  });
});

Honest limitations: Per Cypress's own trade-offs page, test code is JavaScript only, and Cypress controls one browser at a time; flows that open a new tab need the @cypress/puppeteer plugin. WebKit support is experimental. Cypress Cloud adds cost for parallelization and analytics beyond the free Starter plan.

Best for: JavaScript/TypeScript front-end teams (React, Vue, Angular), organizations where developers write tests alongside QA, teams that value the interactive debugging experience.


8. Selenium: the legacy reference

selenium.dev · Open source · Free · All major languages

Selenium is the original web automation framework. It shaped the test automation industry and still powers a huge volume of enterprise suites in Java, C#, Python and Ruby. In 2026, Selenium stays relevant mainly because so many working test suites run on it, and rewriting them is rarely justified by preference alone.

When to choose Selenium in 2026:

Choose Selenium when:
  ✅ Existing large Java/C# test suite invested over years
  ✅ Regulatory requirement for specific browser/driver versions
  ✅ Internal tool integration built around WebDriver protocol
  ✅ Team expertise is deeply invested in Selenium patterns
  ✅ Specific legacy browser or custom browser configuration required

Think twice before starting new projects on Selenium:
  ❌ Starting from scratch in 2026: consider Playwright
  ❌ Python team with no existing Selenium: consider Playwright for Python

Migrating from Selenium to Playwright: selector translation

// Common Selenium selectors → Playwright ARIA equivalents

// Selenium Java:
driver.findElement(By.id("checkout-submit")).click();
// Playwright TypeScript:
await page.getByRole('button', { name: 'Place order' }).click();

// Selenium:
driver.findElement(By.cssSelector(".email-input")).sendKeys("test@example.com");
// Playwright:
await page.getByLabel('Email address').fill('test@example.com');

// Selenium:
driver.findElement(By.xpath("//h1[contains(text(),'Order confirmed')]"));
// Playwright:
await expect(page.getByRole('heading', { name: 'Order confirmed' })).toBeVisible();

// Selenium explicit wait:
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
WebElement element = wait.until(
    ExpectedConditions.visibilityOfElementLocated(By.id("confirmation"))
);
// Playwright (auto-waits, no explicit wait needed):
await expect(page.getByTestId('confirmation')).toBeVisible();

Honest limitations: Safari testing needs SafariDriver on macOS or a device cloud. You write explicit waits for most dynamic content (implicit waits are discouraged but common). The API is older and wordier than Playwright's, and you assemble the runner, reporting and parallel grid yourself.

Moving off Selenium? Compare the options in the best Selenium alternatives.


9. API testing frameworks

API testing verifies that your backend works correctly (status codes, response schemas, authentication and error handling) independently of any UI.

## tests/api/test_orders.py: API testing with pytest

import pytest
import httpx

@pytest.fixture(scope="module")
def client():
    auth = httpx.post("https://staging.yourapp.com/api/auth/login", json={
        "email": "test@example.com", "password": "TestPass2026!"
    })
    token = auth.json()["access_token"]
    return httpx.Client(
        base_url="https://staging.yourapp.com",
        headers={"Authorization": f"Bearer {token}"},
        timeout=10.0
    )

class TestOrdersAPI:

    def test_create_order_returns_201(self, client):
        response = client.post("/api/v1/orders", json={
            "product_id": "prod-widget-pro", "quantity": 2
        })
        assert response.status_code == 201
        order = response.json()
        assert order["order_id"].startswith("ORD-")
        assert order["status"] == "pending"
        assert order["quantity"] == 2

    def test_unauthenticated_request_returns_401(self):
        response = httpx.get("https://staging.yourapp.com/api/v1/orders")
        assert response.status_code == 401

    @pytest.mark.parametrize("quantity,expected", [
        (1,   201),
        (100, 201),
        (0,   422),
        (-1,  422),
        (101, 422),
    ])
    def test_quantity_boundary_values(self, client, quantity, expected):
        response = client.post("/api/v1/orders", json={
            "product_id": "prod-widget-pro", "quantity": quantity
        })
        assert response.status_code == expected, \
            f"Quantity {quantity}: expected {expected}, got {response.status_code}"
// tests/api/orders.test.js: Supertest with Jest

const request = require('supertest');
const app = require('../../src/app');

describe('Orders API', () => {
  let authToken;

  beforeAll(async () => {
    const response = await request(app)
      .post('/api/auth/login')
      .send({ email: 'test@example.com', password: 'TestPass2026!' });
    authToken = response.body.access_token;
  });

  test('POST /api/v1/orders creates order with valid payload', async () => {
    const response = await request(app)
      .post('/api/v1/orders')
      .set('Authorization', `Bearer ${authToken}`)
      .send({ product_id: 'prod-widget-pro', quantity: 1 });

    expect(response.status).toBe(201);
    expect(response.body.order_id).toMatch(/^ORD-\d{8}$/);
    expect(response.body.status).toBe('pending');
  });

  test('GET /api/v1/orders rejects unauthenticated request', async () => {
    const response = await request(app).get('/api/v1/orders');
    expect(response.status).toBe(401);
  });
});

API framework comparison

FrameworkLanguageBest forFree
pytest + httpxPythonPython backends, parametrized API testing✅
SupertestJavaScriptNode.js/Express API testing in the same repo✅
REST AssuredJavaJava Spring Boot APIs, BDD-style API testing✅
Postman + NewmanJavaScript (scripts)API exploration, manual + automated hybrid✅ Free tier
Robonito (ours)None (no-code)API tests alongside UI tests; imports Postman collectionsPro plan

For a wider list, see the best API test automation tools.


10. Mobile testing frameworks

Mobile testing needs different frameworks depending on whether you test native apps (compiled Swift, Kotlin or React Native code) or mobile web (browsers on devices).

Mobile web: Playwright emulation

// Playwright: mobile web viewport testing
test('checkout works on iPhone 14 viewport', async ({ page }) => {
  await page.setViewportSize({ width: 393, height: 852 });
  await page.goto('/checkout');

  // No horizontal overflow on mobile
  const scrollWidth = await page.evaluate(() => document.body.scrollWidth);
  expect(scrollWidth).toBeLessThanOrEqual(394);

  // Critical elements visible without scrolling
  await expect(page.getByRole('button', { name: 'Place order' })).toBeVisible();
});

Native mobile app testing

FrameworkPlatformLanguageBest for
DetoxReact NativeJavaScriptReact Native apps
XCUITestiOS onlySwiftNative iOS, deepest Apple integration
EspressoAndroid onlyKotlin/JavaNative Android, Google-maintained
AppiumiOS + AndroidAll major languagesCross-platform native, hybrid and mobile web
Robonito (ours)iOS + AndroidNone (no-code)Native app tests without code, on a real device farm (Pro and Enterprise)
// Detox: React Native checkout test
describe('Checkout', () => {
  beforeAll(async () => {
    await device.launchApp({ newInstance: true });
  });

  it('completes purchase on iOS', async () => {
    await element(by.id('product-widget-pro')).tap();
    await element(by.id('add-to-cart-btn')).tap();
    await element(by.id('checkout-nav-btn')).tap();

    await element(by.id('name-input')).typeText('Jane Smith');
    await element(by.id('email-input')).typeText('jane@example.com');
    await element(by.id('card-number-input')).typeText('4242424242424242');
    await element(by.id('place-order-btn')).tap();

    await expect(element(by.id('order-confirmation'))).toBeVisible();
  });
});

11. BDD frameworks

BDD frameworks let you write tests in Gherkin (Given-When-Then) syntax, so scenarios are readable by non-technical stakeholders and tied directly to automated checks.

## features/checkout.feature
Feature: Checkout process

  Scenario: Successful checkout with valid payment
    Given I am logged in as a registered customer
    And I have "Widget Pro" in my cart
    When I navigate to checkout
    And I enter valid payment details
    And I click "Place order"
    Then I should see "Order confirmed"
    And I should receive an order number matching "ORD-XXXXXXXX"
// Step definitions with Playwright
import { Given, When, Then } from '@cucumber/cucumber';
import { expect } from '@playwright/test';

Given('I am logged in as a registered customer', async function () {
  await this.page.request.post('/api/auth/login', {
    data: { email: 'test@example.com', password: 'TestPass2026!' }
  });
});

When('I click {string}', async function (label: string) {
  await this.page.getByRole('button', { name: label }).click();
});

Then('I should see {string}', async function (heading: string) {
  await expect(
    this.page.getByRole('heading', { name: heading })
  ).toBeVisible({ timeout: 15000 });
});

BDD framework options:

FrameworkLanguagesBest for
CucumberJava/JS/Ruby and moreMost widely used, large ecosystem
Reqnroll.NET (C#).NET teams; a reboot of SpecFlow with a migration path
BehavePythonPython teams, lightweight
pytest-bddPythonTeams already on pytest

12. Performance testing frameworks

Performance frameworks check that the application meets speed and scalability targets under load.

// k6: load test with performance acceptance thresholds
import http from 'k6/http';
import { check, sleep } from 'k6';

export const options = {
  // CI performance gate: fails if thresholds not met
  thresholds: {
    'http_req_duration{name:checkout}': ['p(95)<2000'],  // 95% < 2s
    'http_req_duration{name:api}':      ['p(95)<500'],   // API < 500ms
    'http_req_failed':                   ['rate<0.01'],  // < 1% errors
  },
  stages: [
    { duration: '1m', target: 50 },   // Ramp to 50 users
    { duration: '3m', target: 50 },   // Hold at 50
    { duration: '1m', target: 0 },    // Ramp down
  ],
};

const BASE_URL = __ENV.BASE_URL || 'https://staging.yourapp.com';

export default function () {
  const checkout = http.get(`${BASE_URL}/checkout`, {
    tags: { name: 'checkout' }
  });
  check(checkout, { 'checkout 200': r => r.status === 200 });

  const order = http.post(`${BASE_URL}/api/v1/orders`,
    JSON.stringify({ product_id: 'prod-widget-pro', quantity: 1 }),
    { headers: { 'Content-Type': 'application/json' }, tags: { name: 'api' } }
  );
  check(order, { 'order created': r => r.status === 201 });

  sleep(1);
}

Performance framework comparison:

FrameworkTypeLanguageCI-friendlyFree
k6Load + stressJavaScript✅ Native✅ OSS
JMeterLoad + SOAPGUI + XML✅ CLI mode✅ OSS
GatlingLoadScala/Java✅✅ OSS
Lighthouse CICore Web VitalsCLI✅ Native✅ OSS

Python test automation frameworks

Python is a common choice for test automation because the syntax is easy to read and the same language covers UI, API and data checks. These are the frameworks Python teams use most. For the full Python list, see the best Python test automation frameworks.

  • pytest: the default test runner for Python. Fixtures, parametrized tests and a large plugin ecosystem (pytest-xdist for parallel runs, pytest-html for reports). Use it as the base for everything else on this list.
  • Playwright for Python: browser automation for Chromium, Firefox and WebKit, with auto-waiting. The pytest-playwright plugin gives you a page fixture out of the box.
  • Selenium (Python bindings): the long-standing choice, with the widest browser and grid support. Expect more explicit waits and locator maintenance than Playwright.
  • Robot Framework: keyword-driven tests in a readable tabular syntax, with libraries for browsers, APIs and desktop. Popular where testers without a coding background write tests.
  • Behave and pytest-bdd: Gherkin (Given/When/Then) scenarios bound to Python step code, for teams practicing BDD.
  • unittest: in the standard library. Fine for small projects; most teams move to pytest as suites grow.
  • Locust: load testing in plain Python code.

A minimal Playwright and pytest test:

# tests/test_login.py  (pip install pytest-playwright && playwright install)
from playwright.sync_api import Page, expect

def test_login_shows_dashboard(page: Page):
    page.goto("https://staging.example.com/login")
    page.get_by_label("Email").fill("qa@example.com")
    page.get_by_label("Password").fill("correct-horse")
    page.get_by_role("button", name="Sign in").click()
    expect(page.get_by_role("heading", name="Dashboard")).to_be_visible()

Run it with pytest --browser webkit to check Safari's engine, or add -n 4 with pytest-xdist to run in parallel.

Framework or architecture? Two meanings of "framework"

People use "test automation framework" in two ways, and search results mix them up:

  • A tool framework such as Playwright, Selenium, Cypress or pytest: the library you write tests with. This guide compares those.
  • A framework architecture such as linear, modular, data-driven, keyword-driven, BDD or hybrid: how you organize tests on top of a tool. For those, see types of test automation frameworks.

Most mature QA automation frameworks combine both: for example Playwright as the tool, with a hybrid of page objects and data-driven tests as the architecture.

13. Which framework should you pick?

Use this matrix to match your situation to a framework combination.

Your situationWeb UIAPIMobilePerformance
Engineering team, multi-languagePlaywrightpytest / SupertestDetox / XCUITestk6
Non-technical QA, no scriptingRobonitoRobonito (Pro)Robonito (Pro)Robonito load testing (Pro) or Lighthouse CI
JavaScript-first, developer testingCypressSupertestDetoxk6
Java/Spring Boot teamPlaywright (Java)REST AssuredAppiumJMeter
Enterprise, existing Selenium suitePlaywright (migrate gradually) or keep SeleniumREST AssuredAppiumJMeter
Mixed team (technical + non-technical)Robonito + PlaywrightpytestDetox or Robonito (Pro)k6

The five-question framework selector

Q1: Do your QA analysts write code?
  YES → Scripted frameworks (Playwright, Cypress, pytest)
  NO  → Plain-language platform (Robonito) or keyword-driven (Robot Framework)

Q2: Do you need Safari/WebKit testing?
  YES → Playwright (bundled WebKit) or Selenium with SafariDriver on macOS
  NO  → Cypress is also viable

Q3: Do you need API + UI in one framework?
  YES → Playwright (free) or Robonito Pro (no-code)
  NO  → Any UI framework + separate API framework

Q4: How fast does your UI change?
  Frequently (every sprint) → Self-healing platform (Robonito)
                              or Playwright with its healer agent and ARIA-first locators
  Moderately → Playwright with ARIA-first locators
  Rarely → Any framework viable

Q5: Do you need native mobile app testing?
  YES (React Native)   → Detox + web framework
  YES (iOS native)     → XCUITest + web framework
  YES (Android native) → Espresso + web framework
  YES (no code)        → Robonito Pro (Android and iOS)
  NO (mobile web only) → Playwright emulation

Picking a framework is one part of a wider plan. Our test automation strategy document template helps you write the rest down.


14. Building a multi-framework testing stack

Most production testing stacks use different frameworks for different layers. Here is what a mature stack looks like in 2026:

Production testing stack, full coverage:

Layer                Framework                Runs in CI
─────────────────────────────────────────────────────────
Unit tests          Jest / pytest             Every commit (< 5 min)
API tests           pytest / Supertest        Every PR (10-20 min)
Web E2E             Playwright or Robonito    Every main merge (30-60 min)
Mobile web          Playwright / Robonito     Every main merge
Native mobile       Detox / XCUITest          Every main merge
Performance         k6 / Lighthouse           Every main merge
Accessibility       axe-core                  Every main merge
Security            OWASP ZAP                 Every main merge
Visual regression   Playwright / Applitools   Every main merge

One GitHub Actions pipeline coordinates all layers.
Each layer runs after the previous passes (fail fast).
## .github/workflows/full-stack-testing.yml
## All framework layers in one coordinated pipeline

name: Full Stack Testing

on:
  push:
    branches: [main]
  pull_request:

jobs:
  unit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm ci && npm test

  api:
    needs: unit
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: pip install pytest httpx --break-system-packages
      - run: pytest tests/api/ -v

  e2e:
    needs: api
    runs-on: ubuntu-latest
    if: github.ref == 'refs/heads/main'
    steps:
      - uses: actions/checkout@v4
      - run: npm ci
      - run: npx playwright install --with-deps

      ## Playwright for complex engineering scenarios
      - run: npx playwright test tests/e2e/
      ## Performance
      - run: k6 run --threshold 'http_req_duration{p(95)}<2000' load-tests/smoke.js
        env: { BASE_URL: ${{ secrets.STAGING_URL }} }

Where Robonito fits: add your Robonito test runs to a pipeline like this through Robonito's CI/CD integration (Jenkins, GitHub Actions, GitLab CI, Azure DevOps or CircleCI, on Starter and above), or schedule them in Robonito.


Frequently asked questions

By GitHub stars on 3 December 2026, the most popular are Playwright (about 101,700), Cypress (about 51,100), Selenium (about 34,600), Appium (about 22,300) and pytest (about 14,900), followed by Robot Framework, WebdriverIO, JUnit 5, Cucumber and TestNG. Stars track developer interest; Selenium still runs a very large number of existing suites.

What is the best test automation framework in 2026?

No single framework is best for everyone. Playwright for engineering teams that want free web + API + cross-browser coverage. Cypress for JavaScript-first, developer-owned testing. pytest for Python API teams. Appium for cross-platform native mobile. A plain-language platform such as Robonito for teams whose testers don't write code. Match the choice to your team's skills, app type and coverage goals.

Which test automation framework is best for beginners?

For beginners who can code a little, Playwright is the easiest modern start: one install gives you a runner, assertions, reports and a code generator that records your clicks. Python beginners can pair it with pytest. Testers who don't code usually start faster with keyword-driven Robot Framework or a plain-language platform.

What is the difference between Playwright and Selenium?

Playwright is the usual choice for new projects: bundled WebKit, built-in auto-waiting, a built-in runner and a modern API. Selenium's advantages are the widest language support and the largest body of existing suites and know-how. For new projects in 2026, start with Playwright. For large existing Selenium suites, migrate gradually or not at all.

Should I use Playwright or Cypress?

Playwright for WebKit/Safari testing, multi-language teams, API alongside UI and multi-tab flows. Cypress for JavaScript/TypeScript teams, developer-owned testing and its interactive debugging. If you are not JavaScript-only and need Safari's engine, Playwright is the clearer choice.

Can I use multiple test automation frameworks together?

Yes, and most mature teams do: for example Jest or pytest for unit tests, pytest or Supertest for APIs, Playwright for web E2E and Detox or XCUITest for native mobile, all triggered from one CI pipeline. Keep one framework per layer so people know where a test belongs.

What is the best no-code test automation framework?

It depends on what you need to test. Robonito (our product) covers web on every plan and adds mobile, desktop and API on Pro, with self-healing and plain-language test creation. Katalon and mabl are established low-code options. See the best AI software testing tools for a wider comparison.

What is the best Python test automation framework?

pytest is the best base for most Python teams, combined with Playwright for Python for browser tests and plain pytest with an HTTP client for API tests. Robot Framework suits teams that prefer keyword-driven tests written by non-programmers. More in Python test automation frameworks.

What is a test automation framework, and how is it different from a tool?

A tool does one job, such as driving a browser. A framework adds the structure around it: how tests are organized, how data and configuration are handled, how tests run in CI and how results are reported. Our guide to what a test automation framework is covers the components and the six types in depth.


External references


Want web, mobile and API tests without maintaining locators by hand? or .

Free whitepaperThe Agentic QA PlaybookMove from test scripts to AI agents in 90 days, with the controls, metrics and a 25-question vendor checklist.

No-code AI test automation

Spend less time testing and more time shipping.

3Pillar showed Robonito's agents to its own client live, and that client is now onboarding. Start on the Free plan, which stays free forever, or book a demo and we'll walk through your own app.

Newsletter

Get new posts by email

Practical guides on software testing, QA automation and AI agents. One email when we publish, no spam.

We'll send a confirmation email first. Your details are stored with Mailchimp, our email provider.

All blog posts