@testdriver.ai/playwright
v1.0.5
Published
TestDriver Playwright integration
Readme
@testdriver.ai/playwright
Selectorless, natural language automation with Playwright & TestDriver.ai.
- import { expect, test } from "@playwright/test"
+ import { expect, test } from "@testdriver.ai"
- await page.getByRole('link', { name: 'Get started' }).click();
+ await testdriver.locate('Get Started').click();
- await expect(
- page.getByRole('heading', { name: 'Installation' })
- ).toBeVisible();
+ await expect(() =>
+ expect(page).toMatchPrompt('Heading says "Installation"')
+ ).toPass();