Skip to main content

What Playmatic does differently

  • Faster Coverage: Write tests much faster with coding agents. They just need to generate natural language steps instead of perfect selectors.
  • Less Noise: Automatically handle brittleness & flakiness. Playmatic tests self-heal when there’s a flaky environment or drifting selector.
  • More Powerful: Test more complex flows. AI steps can do smart assertions, waits and actions that were hard to represent with selector code.
import { test, testStep } from "@playmatic/sdk";

test(
  // Test goal that is used to self-heal at run-time
  "Verify users can reach the waitlist calendar from the landing page",
  ({ env }) => {
    // Natural language step that is also used for self-healing
    testStep("Navigate to Playmatic.ai", async ({ page }) => {
      // Code cache that is executed first
      await page.goto(env.baseUrl);
    });

    // Pure computer use steps with no caching
    testStep("Click the button to join the waitlist");
    testStep("Choose the first available date and stop");
  }
);

Get Started in 30 seconds

Prerequisites:
# Navigate to your web app
cd your-app

# Install Playmatic SDK & CLI
npm i -D @playmatic/sdk
npm install -g playmatic

# Setup Playmatic
playmatic setup
You are ready to start creating self-healing E2E tests using natural language! Continue with Quickstart (5 mins)

Why developers love Playmatic

  • Speed: Save hours every week from writing, maintaining and debugging brittle end-to-end tests that flake.
  • Fit: Playmatic works in your terminal and writes tests inside your repo. You don’t need to open another window and learn another UI.
  • Control: Choose the balance of determinism & self-healing in each step so every test is predictable.

Next steps