Skip to content

API Reference

@duplojs/playwright is organized around a Website, pages, components, and helpers to write more readable Playwright tests.

🌐 Website

Main entry point. Holds the Page, the BrowserContext, and global helpers.

🧩 Component

Declares a reusable component from its main element and its named elements.

🤝 Component Interaction

Builds reusable custom interactions for components.

📄 Page

Declares a page with its path, main element, and components.

💥 Actions

List of ready-to-use actions to apply to a component's elements.

✅ Assertions

List of ready-to-use assertions to apply to a component's elements.

Released under the MIT license.