Prerequisites
Prerequisites
Before creating Browser Checks, ensure you have:
- An initialized Checkly CLI project
- A public website you want to monitor
- Understanding of Playwright test syntax and structure
Configuration
The Browser Check configuration consists of specific Browser Check options and inherited general check options.- Browser Check
- General Options
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
code | object | ✅ | - | The Playwright test code |
Browser Check Options
The Playwright test code that defines how to execute your end-to-end browser monitor. This is the core component of any browser check.Usage:Parameters:
Examples:Use cases: E2E testing, user journey validation, performance testing, visual regression testing.
| Parameter | Type | Required | Description |
|---|---|---|---|
entrypoint | string | ❌ | Path to a .spec.js or .spec.ts file containing the Playwright test |
content | string | ❌ | Inline JavaScript/TypeScript code as a string |
You must provide either
entrypoint or content, but not both.General Check Options
Friendly name for your Browser Check that will be displayed in the Checkly dashboard and used in notifications.Usage:
How often the Browser Check should run. Use the Examples:Available frequencies:
Frequency enum to set the check interval.Usage:EVERY_1M, EVERY_2M, EVERY_5M, EVERY_10M, EVERY_15M, EVERY_30M, EVERY_1H, EVERY_2H, EVERY_6H, EVERY_12H, EVERY_24HArray of public location codes where the Browser Check should run. Multiple locations provide geographic coverage and redundancy.Usage:Examples:Use cases: Global user experience monitoring, regional performance testing, compliance requirements.
Whether the browser check is enabled and will run according to its schedule.Usage:
Array of tags to organize and categorize your Browser Checks in the Checkly infrastructure.Usage:Examples:Use cases: Organization, filtering, alerting rules, reporting.
Check-level environment variables that will be available during test execution. Useful for test configuration and sensitive data.Usage:Parameters:
Examples:Use cases: Test configuration, authentication, API keys, feature flags, environment-specific settings.
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | ✅ | Environment variable name |
value | string | ✅ | Environment variable value |
secret | boolean | ❌ | Whether the value should be encrypted and hidden |