🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@playmatic/sdk

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@playmatic/sdk

Environment management and AI helpers for Playwright tests

latest
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

Playmatic SDK

Test SDK for creating self-healing E2E tests that combine natural language with cached steps.

View Full Documentation

Installation

# npm
npm install @playmatic/sdk

# pnpm
pnpm add @playmatic/sdk

# yarn
yarn add @playmatic/sdk

What are Playmatic Tests?

Playmatic tests are Playwright tests enhanced with AI helpers for robust, self-healing E2E testing:

import { aiClick, aiVerify, env } from '@playmatic/sdk';
import { test, expect } from '@playwright/test';

test('User can login and access dashboard', async ({ page }) => {
  await test.step('Navigate to login', async () => {
    // Use deterministic Playwright for stable navigation
    await page.goto(env.baseUrl + '/login');
  });

  await test.step('Verify login form with AI', async () => {
    // Use AI for visual verification
    await aiVerify('login form with email and password fields is visible', page);
  });

  await test.step('Submit login', async () => {
    // Use AI to click elements that might have brittle selectors
    await aiClick('login button', page);
    await expect(page).toHaveURL(/dashboard/);
  });
});

When selectors break or UI changes, AI computer vision automatically figures out how to accomplish the intent using visual understanding.

Complete guides, examples, and API reference at docs.playmatic.ai

Keywords

testing

FAQs

Package last updated on 14 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts