ZeroStep is an AI tool that enhances Playwright tests by leveraging the capabilities of GPT3.5 and GPT4. Its key feature is the ai() function, which allows users to simplify and fortify their Playwright tests.
Rather than relying on CSS selectors or XPath locators, ZeroStep’s AI assistant dynamically determines actions at runtime based on plain-text instructions. This approach seamlessly integrates with Playwright, allowing users to harness AI without disrupting their existing development workflow.
ZeroStep is specifically designed to create end-to-end tests that remain robust even when the application changes. Users can script complex interactions and assertions using natural language instructions. For example, they can book the next available timeslot, verify organic search results, retrieve stock prices, validate article revisions, check for displayed ads, or count labels in a repository.
ZeroStep directly integrates with Playwright using the npm i @zerostep/playwright -D command. Additionally, it provides a simplified API called ai(), which accepts plain-text instructions and seamlessly integrates with Playwright’s API and test framework. By leveraging AI, users can achieve greater simplicity and resilience in their Playwright tests.