stably-sdk-rules

Guide Playwright end-to-end tests using Stably SDK AI assertions and extraction.

14|5|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/stablyai/agent-skills --skill stably-sdk-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stably-sdk-rules
Source: https://github.com/stablyai/agent-skills/tree/main/skills/stably-sdk-rules
Command: npx skills add https://github.com/stablyai/agent-skills --skill stably-sdk-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides essential rules, best practices, and usage guidance for effectively leveraging the Stably Playwright SDK, ensuring robust and maintainable end-to-end tests.

Core Features & Use Cases

  • AI-Powered Testing: Utilize aiAssert, page.extract, agent.act, and page.getLocatorsByAI for advanced testing scenarios.
  • Email Testing: Integrate @stablyai/email for seamless testing of email-dependent flows like OTP verification and magic links.
  • Use Case: When writing Playwright tests that involve dynamic UI elements, complex user interactions, or email verifications, this Skill acts as your expert guide to using the Stably SDK correctly and efficiently.

Quick Start

Use the stably-sdk-rules skill to understand how to write Playwright tests with Stably AI features.

Frequently Asked Questions about stably-sdk-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use AI assertions in Playwright tests?

AI assertions in Playwright tests are executed using the `aiAssert` method provided by the Stably SDK, allowing you to validate dynamic UI elements and complex user interactions without relying on rigid selectors.

Can I test email flows like OTP verification in Playwright?

Yes, you can test email flows like OTP verification and magic links in Playwright by integrating the `@stablyai/email` package, which provides seamless testing capabilities for email-dependent user workflows.

What is the best way to extract data from web pages during end-to-end testing?

The best way to extract data during end-to-end testing is using the `page.extract` method from the Stably SDK, which enables robust data extraction from web pages for AI-enhanced testing workflows.

How do autonomous agents work in e2e testing workflows?

Autonomous agents in e2e testing workflows operate via the `agent.act` method, allowing the Stably SDK to perform complex user interactions autonomously while maintaining robust test execution.

Does the Stably SDK replace standard Playwright methods?

No, the Stably SDK does not replace standard Playwright methods; it augments them by providing AI-enhanced capabilities like `aiAssert` and `page.getLocatorsByAI`, requiring developers to understand the distinction between the two.

How do I locate dynamic UI elements in Playwright without fragile selectors?

You can locate dynamic UI elements in Playwright without fragile selectors by using the `page.getLocatorsByAI` method from the Stably SDK, which leverages AI to identify elements for robust end-to-end tests.