/playwright-ai

Primary LanguageTypeScript

tests-ai

Use Anthropic's Computer use API inside playwright tests.

import { test } from "@playwright/test";
import { ai } from "tests-ai";

test("click on counter button", async ({ page }) => {
  await page.goto("/");
  await ai("click on the counter button and verify that the count goes up", {
    page,
    test,
  });
});

To configure make sure you have the ANTHROPIC_API_KEY set in your environment.