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
| Fact | Source |
|---|---|
| Playwright surpassed Selenium in weekly npm downloads in 2024 and holds the lead in 2026 | npm trends |
| 40-60% of automation effort goes to test maintenance without self-healing | Capgemini World Quality Report 2025 |
| No-code automation adoption grew 340% from 2023 to 2026 | Gartner |
| Teams using AI test platforms deploy 2.4× more frequently | DORA State of DevOps 2025 |
| The average engineering team uses 3-5 automation frameworks across their full stack | World Quality Report 2025 |
Table of Contents
- What are the most popular test automation frameworks in 2026?
- What should a framework choice decide?
- What changed in the framework landscape in 2026?
- Web UI frameworks: the complete comparison
- Playwright: the 2026 engineering standard
- Robonito: plain-language testing with AI agents (our product)
- Cypress: JavaScript-first developer testing
- Selenium: the legacy reference
- API testing frameworks
- Mobile testing frameworks
- BDD frameworks
- Performance testing frameworks
- Which framework should you pick?
- Building a multi-framework testing stack
- Frequently asked questions
·
1. What are the most popular test automation frameworks in 2026?
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.
| Rank | Framework | Write tests in | Test types | License | GitHub stars (3 Dec 2026) |
|---|---|---|---|---|---|
| 1 | Playwright | TypeScript/JavaScript, Python, Java, .NET | Web E2E across Chromium, Firefox and WebKit; API | Apache-2.0 | ~101,700 |
| 2 | Cypress | JavaScript/TypeScript | Web E2E, component, API calls via cy.request | MIT | ~51,100 |
| 3 | Selenium | Java, Python, C#, Ruby, JavaScript | Web browser automation | Apache-2.0 | ~34,600 |
| 4 | Appium | Java, Python, JavaScript, C#, Ruby (client libraries) | Native, hybrid and mobile web apps on iOS and Android | Apache-2.0 | ~22,300 |
| 5 | pytest | Python | Unit, integration, API; runner for UI tests via plugins | MIT | ~14,900 |
| 6 | Robot Framework | Keyword syntax, libraries in Python | Keyword-driven acceptance tests for web, API, mobile and desktop via libraries | Apache-2.0 | ~12,000 |
| 7 | WebdriverIO | JavaScript/TypeScript | Web, native and hybrid mobile apps, desktop apps | MIT | ~9,900 |
| 8 | JUnit 5 | Java, Kotlin | Unit and integration; common runner for Selenium and REST Assured | EPL-2.0 | ~7,100 |
| 9 | Cucumber | Gherkin + Java, JavaScript, Ruby and more | BDD acceptance tests | MIT | ~5,400 (JS), ~2,800 (JVM) |
| 10 | TestNG | Java | Unit, integration, data-driven runs; common Selenium runner | Apache-2.0 | ~2,100 |
| — | Robonito (our product) | Plain English, recordings or no-code steps | Web on every plan; mobile, desktop and API on Pro and Enterprise | Commercial (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
| Framework | How you write tests | Browsers | Mobile | API | Self-healing | Cost (Dec 2026) | Best for |
|---|---|---|---|---|---|---|---|
| Playwright | Code: TS/JS, Python, Java, .NET | Chromium, Firefox, WebKit | Emulation only | ✅ | Healer agent (opt-in) | Free, open source | Engineering teams, cross-engine web |
| Cypress | Code: JS/TS | Chrome-family, Firefox; WebKit experimental | ❌ | ✅ cy.request | — | Free Starter; Cloud Team from $67/mo ($799/yr) | Front-end JS teams |
| Selenium | Code: Java, Python, C#, Ruby, JS | Chrome, Firefox, Edge, Safari | Via Appium | ❌ | ❌ | Free, open source | Max language choice, existing suites |
| WebdriverIO | Code: JS/TS | All major browsers | Native and hybrid apps via Appium | ❌ | — | Free, open source | One JS framework for web + mobile |
| TestCafe | Code: JS/TS | All modern, incl. Safari | Remote mobile browsers | ❌ | ❌ | Free, open source | Simple web E2E setup |
| Katalon | No-code, low-code, Groovy/Java | Major browsers | Native via Appium | ✅ REST/SOAP/GraphQL | ✅ paid plans | Free plan; Professional $1,800/seat/yr | Mixed-skill teams, one IDE |
| mabl | Low-code with AI agents | All major | Native (add-on) | ✅ | ✅ | Pricing on request | Enterprise web + API + mobile |
| Robonito (ours) | Plain language with AI agents, recordings or no-code steps | Web on every plan | Native Android and iOS on Pro | ✅ on Pro | ✅ every plan | Free plan; Starter $20/mo | Teams 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.
| Area | Playwright | Cypress | Robonito (ours) |
|---|---|---|---|
| Coding required | Yes | Yes | No (low-code extensions optional) |
| Languages | TS/JS, Python, Java, .NET | JavaScript/TypeScript only | Plain English |
| WebKit/Safari engine | Yes, bundled | Experimental | Not covered here |
| API testing | Yes | Via cy.request | Yes, on Pro (Postman import) |
| Self-healing | Healer agent (opt-in AI) | — | Built in, healed steps logged |
| Tests live in your repo as code | Yes | Yes | No by default; can export executable code |
| Cost | Free | Free; Cloud from $67/mo | Free plan; Starter $20/mo |
| Best for | Engineers | JS teams | Mixed 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:
| Capability | Plan |
|---|---|
| Web test automation, plain text to test case and Autopilot, self-healing | Every plan, including Free |
| CI/CD (Jenkins, GitHub Actions, GitLab CI, Azure DevOps, CircleCI), Jira and Slack | Starter 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 testing | Pro 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.
pytest + httpx (Python): recommended for Python teams
## 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}"
Supertest (JavaScript): recommended for Node.js teams
// 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
| Framework | Language | Best for | Free |
|---|---|---|---|
| pytest + httpx | Python | Python backends, parametrized API testing | ✅ |
| Supertest | JavaScript | Node.js/Express API testing in the same repo | ✅ |
| REST Assured | Java | Java Spring Boot APIs, BDD-style API testing | ✅ |
| Postman + Newman | JavaScript (scripts) | API exploration, manual + automated hybrid | ✅ Free tier |
| Robonito (ours) | None (no-code) | API tests alongside UI tests; imports Postman collections | Pro 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
| Framework | Platform | Language | Best for |
|---|---|---|---|
| Detox | React Native | JavaScript | React Native apps |
| XCUITest | iOS only | Swift | Native iOS, deepest Apple integration |
| Espresso | Android only | Kotlin/Java | Native Android, Google-maintained |
| Appium | iOS + Android | All major languages | Cross-platform native, hybrid and mobile web |
| Robonito (ours) | iOS + Android | None (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:
| Framework | Languages | Best for |
|---|---|---|
| Cucumber | Java/JS/Ruby and more | Most widely used, large ecosystem |
| Reqnroll | .NET (C#) | .NET teams; a reboot of SpecFlow with a migration path |
| Behave | Python | Python teams, lightweight |
| pytest-bdd | Python | Teams 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:
| Framework | Type | Language | CI-friendly | Free |
|---|---|---|---|---|
| k6 | Load + stress | JavaScript | ✅ Native | ✅ OSS |
| JMeter | Load + SOAP | GUI + XML | ✅ CLI mode | ✅ OSS |
| Gatling | Load | Scala/Java | ✅ | ✅ OSS |
| Lighthouse CI | Core Web Vitals | CLI | ✅ 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-playwrightplugin gives you apagefixture 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 situation | Web UI | API | Mobile | Performance |
|---|---|---|---|---|
| Engineering team, multi-language | Playwright | pytest / Supertest | Detox / XCUITest | k6 |
| Non-technical QA, no scripting | Robonito | Robonito (Pro) | Robonito (Pro) | Robonito load testing (Pro) or Lighthouse CI |
| JavaScript-first, developer testing | Cypress | Supertest | Detox | k6 |
| Java/Spring Boot team | Playwright (Java) | REST Assured | Appium | JMeter |
| Enterprise, existing Selenium suite | Playwright (migrate gradually) or keep Selenium | REST Assured | Appium | JMeter |
| Mixed team (technical + non-technical) | Robonito + Playwright | pytest | Detox 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
What are the most popular test automation frameworks?
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
- Playwright Documentation: official Playwright reference
- Cypress Documentation: official Cypress reference
- Selenium Documentation: official Selenium reference
- pytest Documentation: Python testing framework
- Appium Documentation: mobile automation
- Detox Documentation: React Native testing
- Grafana k6 Documentation: performance testing
- Cucumber Documentation: BDD framework
Want web, mobile and API tests without maintaining locators by hand? or .




