Skip to main content

For more flexible and diverse test writing, you can define actions using Playwright-based code.

1. Creating Custom Actions

You can add a custom action by clicking the [+] button > [Add Custom Action] button at the top right of the [Test Steps] panel in the Reliv Editor. Click the [>] (detail view) button on the custom action to write the code.

2. Writing Custom Action Code

The following Playwright objects can be used within custom code: For detailed API descriptions, please refer to the Playwright Docs.

3. Custom Action Code Examples Reference

Click

Fill

Hover

Check URL

Check Clipboard

Handling iframes

Handling popup page

Using for loop

API Login

Evaluating custom JS code

https://playwright.dev/docs/evaluating