Runtime versions using Node.js and Playwright - Amazon CloudWatch
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Runtime versions using Node.js and Playwright

The following sections contain information about the CloudWatch Synthetics runtime versions for Node.js and Playwright. Playwright is an open-source automation library for browser testing. For more information about Playwright, see https://playwright.dev/

The naming convention for these runtime versions is syn-language-framework-majorversion.minorversion.

syn-nodejs-playwright-2.0

Major dependencies:

  • Amazon Lambda runtime Node.js 20.x

  • Playwright version 1.49.1

  • Playwright/test version 1.49.1

  • Chromium version 131.0.6778.264

Changes in syn-nodejs-playwright-2.0

  • The mismatch between total duration and sum of timings for a given request in HAR file is fixed.

  • Supports dry runs for the canary which allows for adhoc executions or performing a safe canary update.

For more information, see the following:

The following earlier runtime versions for Node.js and Playwright are still supported.

syn-nodejs-playwright-1.0

Major dependencies:

  • Amazon Lambda runtime Node.js 20.x

  • Playwright version 1.44.1

  • Playwright/test version 1.44.1

  • Chromium version 126.0.6478.126

Features:

  • PlayWright support – You can write canary scripts by using the Playwright automation framework. You can bring your existing Playwright scripts to run as canaries, and enhance them with Amazon monitoring capabilities.

  • CloudWatch Logs integration – You can query and filter for logs through the CloudWatch Synthetics console. Each log message contains unique canaryRunId, making it easy to search for logs for a particular canary run.

  • Metrics and canary artifacts – You can monitor canary run pass rate through CloudWatch metrics, and configure alarms to alert you when canaries detect issues.

  • Screenshots and steps association – You can capture screenshots using native Playwright functionality to visualize the stages of a canary script on each run. Screenshots are automatically associated with canary steps, and are uploaded to Amazon S3 buckets.

  • Multiple tabs– You can create canaries that open multiple browser tabs, and access screenshots from each tab. You can create multi-tab and multi-step user workflows in Synthetics.