Overview
This node automates browser actions using Playwright, specifically to fill form fields on web pages. It is useful for scenarios where automated data entry is needed, such as testing web forms, automating repetitive form submissions, or scraping data that requires form interaction. For example, it can navigate to a URL, locate a form field using a CSS selector, and fill it with a specified value.
Use Case Examples
- Automate login by filling username and password fields.
- Fill out survey forms automatically.
- Input data into web forms for testing purposes.
Properties
| Name | Meaning |
|---|---|
| URL | The URL of the web page to navigate to before filling the form field. |
| Selector | CSS selector to identify the form field element to fill. |
| Value | The value to input into the form field identified by the selector. |
| Browser | The browser engine to use for automation (Chromium, Firefox, or Webkit). |
| Browser Launch Options | Options to configure browser launch behavior, such as running headless or slowing down operations. |
Output
JSON
json- The result of the fill form operation, typically an empty object or confirmation of success.
Dependencies
- Playwright library for browser automation
- Browser executables for Chromium, Firefox, or Webkit
Troubleshooting
- Common issues include browser executable path errors, which are handled by attempting to install the browser if missing.
- Errors during browser launch or page navigation may occur; enabling 'continue on fail' allows the workflow to proceed with error details in output.
- Ensure the CSS selector correctly identifies the form field to avoid failures in filling the form.