Getting Started with Playwright in supaguard
Learn how to create and run Playwright tests in supaguard's cloud infrastructure. Step-by-step guide to setting up your first automated browser test.
Learn how to create and run Playwright tests in supaguard.
What is Playwright?
Playwright is a powerful end-to-end testing framework that enables reliable testing across all modern browsers. supaguard uses Playwright to power its automated testing capabilities.
Creating Your First Test
- Navigate to Checks in your dashboard
- Click Create Check
- Enter a name for your check
- Write your Playwright test in the code editor
Example Test
import { test, expect } from '@playwright/test';
test.describe('My First Test', () => {
test('should load the homepage', async ({ page }) => {
await page.goto('https://example.com');
await expect(page).toHaveTitle(/Example/);
});
});Next Steps
- Learn Tips & Best Practices
- Read the Complete Guide
Monitoring iframes (Stripe, Intercom, and More)
Learn how to use Playwright's frameLocator to monitor content inside iframes, including third-party payment gateways and support widgets.
Complete Playwright Guide for Synthetic Monitoring
Master Playwright test structure, navigation, forms, assertions, and advanced patterns like API mocking for reliable synthetic monitoring.