TestNeo Product page
Launch spotlight

TestNeo Playwright AI SDK

Write Playwright tests in plain English, keep full Playwright control, and unlock the TestNeo workflow for execution evidence and release assurance.

@playwright/test TypeScript & JavaScript Node 18+ Any CI npm install & go

How it works

Keep your existing Playwright workflow while adding natural-language authoring and optional TestNeo publishing.

Step 1

Describe steps in plain English

Use ai.run, ai.step, and ai.verify inside your Playwright tests.

Step 2

Execute locally in Playwright

No black-box runtime. Your tests run in your normal Playwright/browser context.

Step 3

Publish to TestNeo (optional)

Push run history for release evidence, visibility, and team collaboration.

Quickstart example

inline-hybrid.spec.ts
import { test, expect } from "@testneo/playwright-ai-sdk";

test("inline hybrid", async ({ page, ai }) => {
  await ai.run(`
    Navigate to https://www.saucedemo.com
    Enter username as "standard_user"
    Enter password as "secret_sauce"
    Click on Login button
    Verify "Products" is visible
  `, {
    autoPublish: {
      projectId: Number(process.env.TESTNEO_PROJECT_ID),
      testName: "inline hybrid quickstart"
    }
  });

  await ai.step("Add Sauce Labs Backpack to cart");
  await expect(page.locator(".shopping_cart_badge")).toHaveText("1");
});

Why teams choose it

Runs locally, like your tests today

Use your debugger, existing Playwright config, and traces without changing your core setup.

AI + native Playwright in one test

Mix plain-English steps with page.* and expect() where needed.

Strict, balanced, or adaptive modes

Choose mode by context: CI gate rigor, balanced defaults, or adaptive local exploration.

Publish only when you need to

Keep local iteration fast, then publish evidence to TestNeo for release decisions.

Try it now, scale when ready.

Use 10 guest runs without signup, then move to team workflows with full release visibility.