Playwright API icon

Playwright API

Interact with Playwright API

Overview

This node provides integration with the Playwright API to automate browser sessions. Specifically, the "Session - Create" operation allows users to start a new browser session by specifying a session name. This is useful for automating web interactions such as testing websites, scraping data, or performing repetitive browser tasks programmatically.

Common scenarios include:

  • Launching a fresh browser session to run automated UI tests.
  • Starting a session to navigate and interact with web pages.
  • Creating isolated sessions for parallel automation workflows.

Example: A user wants to open a new browser session named "TestSession1" to later navigate to a URL and take screenshots automatically.

Properties

Name Meaning
Session Name Name for the new browser session

Output

The output of this operation is a JSON object representing the newly created browser session. It typically includes details such as the session ID and any metadata related to the session state. This output can be used in subsequent operations to reference and control the specific browser session.

No binary data is produced by the create session operation.

Dependencies

  • Requires an API key credential for authenticating with the Playwright API service.
  • The node depends on the external Playwright API accessible via the configured credentials.
  • No additional environment variables are explicitly required beyond the API authentication setup.

Troubleshooting

  • Error: "The operation 'create' is not supported!"
    This indicates a misconfiguration or typo in the operation parameter. Ensure the operation is set exactly to "create" when creating a session.

  • Authentication errors
    If the node fails due to authentication issues, verify that the API key credential is correctly configured and has sufficient permissions.

  • Network or API connectivity issues
    Failures connecting to the Playwright API may occur if the service is unreachable or network settings block access. Check internet connectivity and firewall rules.

  • Missing required property "Session Name"
    The session name is mandatory; ensure it is provided and not empty.

Links and References

Discussion