

# Runtime versions using Node.js and Playwright
<a name="CloudWatch_Synthetics_Library_nodejs_playwright"></a>

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/](https://playwright.dev) 

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

## syn-nodejs-playwright-6.0
<a name="Synthetics_runtimeversion-syn-nodejs-playwright-6.0"></a>

**Important**  
Starting Synthetics `syn-nodejs-playwright-5.1` and later, Synthetics runtime uses the new namespace. Please migrate the canary script to use the new namespace. Legacy namespace will be deprecated in a future release.  
@amzn/synthetics-playwright → @aws/synthetics-playwright

**Major dependencies**:
+ AWS Lambda runtime Node.js 22.x
+ Playwright version 1.58.2
+ Playwright/test version 1.58.2
+ Chromium version 145.0.7632.77
+ Firefox version 146.0.1

 **Changes in syn-nodejs-playwright-6.0** 
+ Applied security patches and updated Playwright and browser versions. 

For more information, see the following:
+  [Playwright change log ](https://playwright.dev/docs/release-notes) 
+  [Playwright API reference](https://playwright.dev/docs/api/class-playwright) 

## Previous runtime versions for Node.js and Playwright
<a name="Previousversions-nodejs-playwright"></a>

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

### syn-nodejs-playwright-5.1
<a name="Synthetics_runtimeversion-syn-nodejs-playwright-5.1"></a>

**Major dependencies**:
+ AWS Lambda runtime Node.js 22.x
+ Playwright version 1.57.0
+ Playwright/test version 1.57.0
+ Chromium version 143.0.7499.169
+ Firefox version 142.0.1

 **Changes in syn-nodejs-playwright-5.1** 
+ Synthetics runtime namespace migration. 
+ Type definition is available in [npm Registry](https://www.npmjs.com/package/@aws/synthetics-playwright). Please ensure the type definition package version matches your canary's runtime version.

For more information, see the following:
+  [Playwright change log ](https://playwright.dev/docs/release-notes) 
+  [Playwright API reference](https://playwright.dev/docs/api/class-playwright) 

### syn-nodejs-playwright-5.0
<a name="Synthetics_runtimeversion-syn-nodejs-playwright-5.0"></a>

**Major dependencies**:
+ AWS Lambda runtime Node.js 22.x
+ Playwright version 1.57.0
+ Playwright/test version 1.57.0
+ Chromium version 143.0.7499.4
+ Firefox version 142.0.1

 **Changes in syn-nodejs-playwright-5.0** 
+ Applied security patches and updated Playwright and browser versions. 

For more information, see the following:
+  [Playwright change log ](https://playwright.dev/docs/release-notes) 
+  [Playwright API reference](https://playwright.dev/docs/api/class-playwright) 

### syn-nodejs-playwright-4.0
<a name="Synthetics_runtimeversion-syn-nodejs-playwright-4.0"></a>

**Major dependencies**:
+ AWS Lambda runtime Node.js 22.x
+ Playwright version 1.55.0
+ Playwright/test version 1.55.0
+ Chromium version 140.0.7339.16
+ Firefox version 141.0

 **Changes in syn-nodejs-playwright-4.0** 
+ Applied security patches and updated Playwright and browser versions. 

For more information, see the following:
+  [Playwright change log ](https://playwright.dev/docs/release-notes) 
+  [Playwright API reference](https://playwright.dev/docs/api/class-playwright) 

### syn-nodejs-playwright-3.0
<a name="Synthetics_runtimeversion-syn-nodejs-playwright-3.0"></a>

**Major dependencies**:
+ AWS Lambda runtime Node.js 20.x
+ Playwright version 1.53.0
+ Playwright/test version 1.53.0
+ Chromium version 138.0.7204.168

 **Changes in syn-nodejs-playwright-3.0** 
+ Multi-browser support – You can now run your nodejs puppeteer canaries in either Firefox or Chrome
+ Support for visual monitoring

For more information, see the following:
+  [Playwright change log ](https://playwright.dev/docs/release-notes) 
+  [Playwright API reference](https://playwright.dev/docs/api/class-playwright) 

### syn-nodejs-playwright-2.0
<a name="Synthetics_runtimeversion-syn-nodejs-playwright-2.0"></a>

**Major dependencies**:
+ AWS 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:
+  [Playwright change log ](https://playwright.dev/docs/release-notes) 
+  [Playwright API reference](https://playwright.dev/docs/api/class-playwright) 

### syn-nodejs-playwright-1.0
<a name="Synthetics_runtimeversion-syn-nodejs-playwright-1.0"></a>

**Major dependencies**:
+ AWS 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 AWS 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. 