For additional setup information, see CLI overview.
import { BrowserCheck, Frequency } from "checkly/constructs"import * as path from "path"new BrowserCheck("browser-check-1", { name: "Browser check #1", description: "Loads the **home page** and asserts key elements are visible.", frequency: Frequency.EVERY_10M, locations: ["us-east-1", "eu-west-1"], code: { entrypoint: path.join(__dirname, "home.spec.ts"), },})
How often the Browser Check should run. Use the Frequency enum to set the check interval.Usage:
import { Frequency } from 'checkly/constructs'new BrowserCheck("my-check", { name: "My Browser Check", frequency: Frequency.EVERY_5M, /* More options... */})
Examples:
// For critical user journeysnew BrowserCheck("critical-login", { name: "Critical Login Flow", frequency: Frequency.EVERY_1M, // Every minute tags: ["critical", "high-priority"], /* More options... */})
The Checkly runtime version used to execute the Browser Check. Runtimes are managed execution environments for Browser and Multistep Checks. They include fixed Checkly-provided dependencies, such as Playwright, browser binaries, and runtime libraries.Use runtimeId for Browser Checks and Multistep Checks. For Playwright Check Suites, use engine instead to select the JavaScript engine version that runs your own Playwright project.Usage:
new BrowserCheck("my-check", { name: "My Browser Check", runtimeId: "2025.04", /* More options... */})
Array of public location codes where the Browser Check should run. Multiple locations provide geographic coverage and redundancy.Usage:
new BrowserCheck("my-check", { name: "My Browser Check", locations: ["us-east-1", "eu-west-1", "ap-southeast-1"], /* More options... */})
Examples:
// Comprehensive global monitoringnew BrowserCheck("global-check", { name: "Global User Experience", locations: [ "us-east-1", // N. Virginia "us-west-1", // N. California "eu-west-1", // Ireland "ap-southeast-1", // Singapore "ap-northeast-1", // Tokyo ], /* More options... */})
Use cases: Global user experience monitoring, regional performance testing, compliance requirements.
Browser checks require Playwright test files. Make sure your test files use the @playwright/test framework and follow Playwright’s testing conventions.