Member-only story

Playwright tests with AI — ZeroStep

Anandhi K
4 min readSep 21, 2024

ZeroStep is an npm package introduced to flavour Playwright tests with AI power by using GPT3.5 / GPT 4.0 to make the script more simpler.

Alternate to Selectors :

Instead of CSS selectors or XPath locators, ZeroStep’s AI assistant determines what actions to take at runtime based on plain-text instructions.

Since ZeroStep integrates directly into Playwright, we can easily incorporate AI into tests without changing development workflow.

Conventional Vs ZeroStep approach :

Pricing :

ZeroStep comes with two options,

Free plan: 500 ai() function calls per month and unlimited users.

Paid plan: $20 per month for 2,000 ai() function calls and unlimited users.

Installation :

Create a folder in workspace and install,

npm init playwright@latest -D

npm i @zerostep/playwright -D

Configuration :

To make use of this package, we need to register and get the token.

--

--

Anandhi K
Anandhi K

Written by Anandhi K

DevOps Test Automation Consultant, Trainer and Blogger in Cypress, Selenium, Cucumber, Playwright & CI/CD Tools.

No responses yet