Free tools Windows power users keep installed
One-click scans. No signup required.
Locator.fill() takes a required value—a string for text-like controls or a boolean for checkbox, radio-button, and switch targets—and an optional options object. The key version caveat: Puppeteer’s method reference is for version 25.12.0, but the detailed typingThreshold option is documented on the /next/ reference. Check the documentation matching your installed version before relying on it.
How to fill a field with a Puppeteer locator
The method reference for Puppeteer 25.12.0 shows this signature:
fill<ElementType extends Element>(
this: Locator<ElementType>,
value: string | boolean,
options?: Readonly<LocatorFillOptions>
): Promise<void>
Call fill() on a locator that identifies the target element. Puppeteer determines the element type at runtime and chooses the corresponding fill method. For example:
await page.locator('input[name="email"]').fill('reader@example.com');
The call resolves to Promise<void>; it does not return the filled element or the value. See the Puppeteer Locator.fill() reference for the method signature and supported targets.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Which value should you pass?
| Target | Value to pass | Notes |
|---|---|---|
input, textarea, select, or contenteditable |
A string | Use the text or selection value you want filled. |
| Checkbox, radio button, or switch | A boolean | Use the boolean form documented for these state controls. |
For example, a checkbox can be set with a boolean:
await page.locator('input[type="checkbox"]').fill(true);
The documented target list does not establish that fill() works with every custom widget. If a control is implemented as a nonstandard component, use an interaction supported by that widget rather than assuming it behaves like a native form element.
What does typingThreshold do?
The next-version LocatorFillOptions reference lists typingThreshold, described as the number of characters to type before switching to a faster fill-out method. The documented default is 100.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
await page.locator('input[name="email"]').fill('reader@example.com', {
typingThreshold: 100,
});
This example uses an option documented on Puppeteer’s /next/ page; it is not evidence that every released version accepts it. Confirm the options supported by the documentation for your installed release. When the installed version’s behavior matches the next-version reference, explicitly passing 100 is usually unnecessary because that is the documented default. The description does not establish a performance guarantee or specify event behavior.
How locator retries and timeouts affect fill()
Locators are strategies for locating objects and performing actions. Puppeteer checks preconditions automatically and retries an operation when the target is not ready. A call that waits or retries may therefore reflect locator readiness rather than an incorrect value. See the Locator class reference for locator controls, including waiting for enabled elements, viewport presence, and a stable bounding box.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Set a timeout for locator actions
Locator.setTimeout(timeout) returns a cloned locator configured with a total timeout for locator actions. The documented default is Page.getDefaultTimeout(); setting the timeout to 0 disables it. This is locator-level configuration, not a documented timeout property of LocatorFillOptions.
const email = page.locator('input[name="email"]').setTimeout(10_000);
await email.fill('reader@example.com');
Use a timeout appropriate to the page and action; the example’s 10 seconds is an illustrative setting, not a Puppeteer default. Details are in the Locator.setTimeout() reference.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Troubleshoot a fill call that does not complete
- The operation keeps waiting or retrying: Check that the locator identifies the intended element and that the target is ready for the action. Review locator readiness controls and the locator or page timeout configuration.
- The element is a custom control: The documented native targets are contenteditable, select, textarea, and input, with boolean values for checkbox, radio-button, and switch cases. For a widget outside those types, use an interaction it supports.
typingThresholdis rejected or unavailable: The property is listed in the next-version reference. Check the API reference for the exact Puppeteer release installed in your project instead of assuming the option exists there.- You expected a timeout option in the fill options object: The reviewed fill-options reference does not list one. Configure locator-action timeout with
setTimeout(), or review the relevant page timeout behavior. - You expected a returned value: The signature returns
Promise<void>. Treat the call as an action and inspect the page separately if you need to verify its resulting state.
Or skip the browser setup
If your goal is a screenshot of a page rather than browser-driven form interaction, ScreenshotNeo can return an image or PDF with one request. It is a screenshot API and MCP server, not a replacement for Puppeteer’s locator interactions. Its one-call cURL example is:
Quick Recap
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
See the ScreenshotNeo API documentation for setup and request options. It removes cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, and failed loads are not billed. Its MCP server lets AI agents take screenshots. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. Sign up for free.
Quick wins for a faster PC:
Repair Windows errors before they cause bigger problemsFix Now →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

