Playwright
Overview
The Playwright node allows to execute Playwright javascript to do web page testing and automation. The node accepts the playwright script as input. The script can be generated using playwright recorder or can be written manually. The node supports few common templates for bootstrapping.
Setup
Prerequisites
For local development your machine should have chromium for executing the framework.
Installation
To install the node from designer:
- Go to Add more nodes option on the palette section.
- Check for the Playwright node and click install.
- Once installed, the designer is required to be restarted.
To install the node from CLI:
- Go to your project workspace where you can see your
package.json
file. - Run the below give npm command.
npm i @kumologica/kumologica-contrib-playwright
Technical Details
Properties
- Templates (Optional)
Option to select any predefined sample template or to build your Playwright script from scratch. - Output (Optional)
Editor that supports to write the Playwright javascript code.
Supported Operations
Page Screenshot Sample PDF Generation Sample Crawler Sample Custom
Throws
Any error thrown by the user within the Playwright node. Catch node can be used to catch this error and initiate the compensation action.
- PlaywrightError
Returns
Based on the logic implemented using playwright script the payload may or may not be overwritten. This is left to the users script implementation. By default neither msg properties or vars are mutated.