Remote Playwright icon

Remote Playwright

Interact with Remote Playwright Instance

Overview

This node enables interaction with a remote Playwright instance, specifically allowing you to perform a "click" action on a web page element identified by a CSS selector. It is useful in browser automation workflows where you need to simulate user clicks programmatically, such as testing web applications, scraping data, or automating repetitive web tasks.

For example, you can use this node to click a button on a webpage after navigating to it, enabling further automated interactions like filling forms or extracting information.

Properties

Name Meaning
Instance ID The identifier of the Playwright instance to target for the click action.
Close Browser on error Whether to close the browser if an error occurs during the click action (true/false).
Selector The CSS selector string that identifies the element to be clicked.
Force Whether to bypass Playwright's actionability checks and force the click (true/false).
Timeout Maximum time in milliseconds to wait for the click action before timing out.

Output

The node outputs JSON data representing the result of the click action. Typically, this will confirm whether the click was successful or provide details about any errors encountered. If the node supports binary data output (not indicated here), it would relate to screenshots or other media captured during the interaction.

Dependencies

  • Requires access to a remote Playwright service endpoint configured via credentials containing the API URL.
  • Needs an active Playwright instance identified by the provided Instance ID.
  • Proper network connectivity and authentication to the remote Playwright API are necessary.

Troubleshooting

  • Common issues:

    • Incorrect or missing Instance ID may cause failure to locate the Playwright session.
    • Invalid or incorrect CSS selector can lead to element not found errors.
    • Timeout too short might cause premature failures if the element takes longer to appear.
    • Forcing the click when the element is not interactable might cause unexpected behavior.
  • Error messages:

    • "Element not found": Check the correctness of the CSS selector.
    • "Timeout exceeded": Increase the timeout value.
    • "Instance not available": Verify the Instance ID and ensure the Playwright instance is running.
    • "Browser closed due to error": If enabled, the browser closes on error; consider disabling this to debug.

Links and References

Discussion