Overview
This node, named "Playwright Keep Alive Tool," is designed to keep a browser session alive by periodically refreshing or maintaining the session state. It is particularly useful in automation workflows where long-running browser sessions need to be preserved without timing out or disconnecting. For example, it can be used in scenarios involving web scraping, automated testing, or any process that requires a persistent browser session managed via Playwright.
Properties
Name | Meaning |
---|---|
Session ID | ID of the browser session to keep alive |
The node requires the user to provide the Session ID, which identifies the specific browser session that should be kept active.
Output
The node outputs data under the json
field with the following structure:
success
: A boolean indicating whether the session was successfully kept alive.message
: A string message confirming the success and specifying the session ID.
Example output JSON:
{
"success": true,
"message": "Successfully kept session alive: <sessionId>"
}
There is no binary data output from this node.
Dependencies
- Requires an API key credential for authenticating with the Playwright service (referred generically as "an API key credential").
- Depends on an external Playwright operations module that provides the actual session keep-alive functionality.
- The node uses a schema validation library to ensure input parameters are correctly structured.
Troubleshooting
- Common issues:
- Providing an invalid or expired Session ID will cause the keep-alive operation to fail.
- Missing or incorrect API authentication credentials will prevent the node from communicating with the Playwright service.
- Error messages:
"Failed to keep session alive: <error message>"
indicates that the node could not refresh the session. This may be due to network issues, invalid session ID, or authentication problems.
- Resolution tips:
- Verify that the Session ID is correct and corresponds to an active browser session.
- Ensure that the API key credential is properly configured and has the necessary permissions.
- Check network connectivity and service availability.