Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

To detach Puppeteer while leaving Chrome running, call await browser.disconnect(). To shut down the browser Puppeteer launched, call await browser.close(). To clean up just one isolated browser context, call await context.close().

Choose the cleanup method that matches what should stay open

What you want to dispose of Call What happens
Puppeteer’s connection to the browser await browser.disconnect() Puppeteer detaches; the browser process and its pages remain running. Puppeteer Browser.disconnect() API
The browser Puppeteer launched await browser.close() The browser and all its associated pages close. Puppeteer Browser.close() API
One non-default browser context await context.close() That context and its pages close; other contexts and the browser remain. The default context cannot be closed this way. Puppeteer BrowserContext.close() API

These are different scopes of cleanup: a connection, the entire browser, or one isolated context. The Puppeteer browser-management guide also notes that disconnecting does not close pages, unlike closing the browser. Browser management guide

Use disconnect when Chrome should keep running

Call disconnect() when your script is finished using the browser for now but another process, later script, or operator should be able to use the still-running browser.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
await browser.disconnect();

This drops Puppeteer’s connection; it does not terminate the browser process or close its pages. The method returns a promise, so await it before the surrounding task exits. The Browser API reference identifies this method in Puppeteer 25.10.0; check the documentation for the version installed in your project if its API differs. Browser.disconnect() API

#1 Best Overall
Melissa & Doug Chef Puppet (Al Dente) with Detachable Wooden Rod Pretend Play Chef Puppet Pepe
  • Beautifully crafted 15-inch hand-and-rod chef puppet
  • Removable clothing includes traditional chef’s coat, scarf, floppy hat
  • Use one hand to manipulate the puppet's mouth and facial expressions, and the other to gesture with the removable wooden arm rod; rod attaches to either of the puppet’s hands, and is suitable for lefty or righty puppeteers
  • Puppet play is a wonderful way to make connections, explore feelings and new perspectives, help build vocabulary, dexterity, imagination, and creativity

Use close when the browser should stop

If your code launched the browser and owns its lifecycle, use close() when the work is complete and the browser and its pages should be shut down.

await browser.close();

Do not use this in place of a simple detach: it closes the browser and all associated pages. The Browser API reference identifies this method in Puppeteer 25.10.0. Browser.close() API

Rank #2
HABA Hand Puppet - Eat it Up Croco Interactive Puppet Show Toy with Belly Bag for Storytelling, Toddler Activities, Speech Therapy Toys and Pretend Play for 18 Months and up
  • INTERACTIVE PUPPET FOR KIDS: Croco the hand puppet makes storytelling fun with a belly bag to "eat" small objects and moveable eyes, sparking pretend play and endless puppet show adventures.
  • EDUCATIONAL & FUN TOOL: Perfect for teachers and parents, this soft puppet for kids makes learning letters, numbers, and words exciting. Great for toddler activities and interactive pretend play.
  • EASY-TO-USE PUPPET: Slip your hand inside to move Croco’s mouth & eyes. This engaging puppet for toddlers 1-3 is perfect for puppet theater or adding to any pretend play toys collection for 18 mo+.
  • DURABLE & SAFE MATERIALS: Made of high-quality polyester, this hand puppet is 15.75" tall and machine washable, ensuring long-lasting fun for toddler pretend play and kids playset storytelling.
  • PERFECT GIFT FOR KIDS:This engaging puppet for kids is a great gift for birthdays and holidays. Ideal for toddler toys, kids toys, and pretend play, encouraging creativity and role-playing.

Close only an isolated context when possible

A browser context is useful when a task needs a separate session. Closing that context removes its pages without shutting down the whole browser.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
const context = await browser.createBrowserContext();
const page = await context.newPage();

// Use page for the task.
await context.close();

Do not call close() on the default browser context; Puppeteer documents that it cannot be closed. BrowserContext.close() API

Rank #3
GUND Sesame Street Elmo 11-Inch Plush Hand Puppet for Ages 1+
  • SESAME STREET ELMO HAND PUPPET: This 11” hand puppet features the classic Muppet with soft, slightly shaggy bright red plush, Elmo’s large eyes, and his excited, friendly expression. Designed to fit children and most adult hands.
  • SOFT & HUGGABLE: This adorable Sesame Street plush hand puppet toy features surface-washable construction for easy cleaning and is made from a soft, premium material that meets our famous GUND quality standards. Appropriate for ages 1 and up
  • GIFT GUND: Our stuffed animals, teddy bears, and sensory toys make timeless birthday and baby shower gifts, home decor, and gifts for every other occasion. Our official Sesame Street plushies are crafted for kids, fans and collectors of all ages
  • Quality Cuddles: Our plush toys feature timeless designs and durable fabrics that stay soft for years. From cute stuff like baby toys, decor, and playsets to anime merch and more, GUND toys are made to be collected, loved, and cuddled for a lifetime
  • Premier Plush: As one of America’s first teddy bear makers, GUND has crafted unique and classic stuffed animals and soft toys for 125 years. Today we proudly carry this legacy and stand by our toys, known worldwide for their quality and innovation

Disconnect now and reconnect later

Save the browser’s WebSocket endpoint before detaching. A later Puppeteer connection can use that endpoint; close the browser when its owner is ready to stop it.

const browser = await puppeteer.launch();
const browserWSEndpoint = browser.wsEndpoint();

await browser.disconnect();

const browser2 = await puppeteer.connect({ browserWSEndpoint });
await browser2.close();

This follows Puppeteer’s documented Browser API example. It demonstrates that a later connection is possible; reconnecting is not a prerequisite for closing a browser. Puppeteer Browser API

Rank #4
Sale
Aurora® Interactive Hand Puppet Garth™ Stuffed Animal - Storytelling Adventures - Playful Learning - Brown 10 Inches
  • This plush is approx. 6.5" x 6.5" x 9" in size
  • Made from the finest quality of material for lasting love
  • A hand puppet toy that showcases this amazing dog, allowing you to control its mouth!
  • Lock-washer eyes ensure safety and long-term enjoyment
  • To ensure stability and quality, this plush contains bean pellets suitable for all ages

What about Connection.dispose()?

Puppeteer’s lower-level Connection.dispose() method is documented as synchronous and returns void. Its reference does not establish it as the normal application-level way to clean up a browser. For application code, choose the Browser lifecycle method—disconnect() or close()—that matches whether the browser must remain alive. The Connection reference identifies version 25.3.0. Connection.dispose() API

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Common cleanup mistakes and fixes

  • The browser disappears when you only wanted to detach: use browser.disconnect(), not browser.close().
  • Chrome stays running after the script: disconnecting leaves the process running by design. If your script owns the browser and should stop it, use browser.close().
  • Closing one task’s pages shuts down other work: if the task used a separate context, close that context with context.close() rather than closing the browser.
  • You cannot close the default context: Puppeteer does not allow it. Create a separate context for work that needs independently scoped cleanup.
  • You are unsure which method exists in your installed version: check the API documentation matching your Puppeteer version. The cited references identify different versions, and the browser-management guide is labeled Next.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If the goal is a website screenshot rather than managing a local Puppeteer browser, ScreenshotNeo returns a screenshot or PDF with one GET request. For example, this cURL call saves a WebP shot of Stripe; replace the URL and set your API key:

Best Value
HollyHOME Shark Hand Puppets Stuffed Ocean Animals Hand Puppet Plush Animal Toys 13 Inches
  • Access into both front flippers and mouth for easy manipulation
  • Made from premium soft fabric with embroidered eyes for added safety
  • 13 inches in height,fit for hands of both adults and kids
  • Great to improve motor skills, hand-eye coordination, communication skills, self-confidence, and social-emotional connections
  • Perfect gift for baby stage performance, storytelling, teaching, birthday party, family party and so on

ScreenshotNeo API documentation

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

ScreenshotNeo removes cookie banners, popups and chat widgets before the shot; bot checks, blank pages and failed loads are not billed. It also offers an MCP server so AI agents can 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 1,000 free screenshots a month, no card required.

Quick Recap

Bestseller No. 1
Melissa & Doug Chef Puppet (Al Dente) with Detachable Wooden Rod Pretend Play Chef Puppet Pepe
Melissa & Doug Chef Puppet (Al Dente) with Detachable Wooden Rod Pretend Play Chef Puppet Pepe
Beautifully crafted 15-inch hand-and-rod chef puppet; Removable clothing includes traditional chef’s coat, scarf, floppy hat
$30.99
Bestseller No. 3
GUND Sesame Street Elmo 11-Inch Plush Hand Puppet for Ages 1+
GUND Sesame Street Elmo 11-Inch Plush Hand Puppet for Ages 1+
Includes: 1 GUND Sesame Street Hand Puppet, Poly Bag
$22.99
SaleBestseller No. 4
Aurora® Interactive Hand Puppet Garth™ Stuffed Animal - Storytelling Adventures - Playful Learning - Brown 10 Inches
Aurora® Interactive Hand Puppet Garth™ Stuffed Animal - Storytelling Adventures - Playful Learning - Brown 10 Inches
This plush is approx. 6.5" x 6.5" x 9" in size; Made from the finest quality of material for lasting love
$9.99
Bestseller No. 5
HollyHOME Shark Hand Puppets Stuffed Ocean Animals Hand Puppet Plush Animal Toys 13 Inches
HollyHOME Shark Hand Puppets Stuffed Ocean Animals Hand Puppet Plush Animal Toys 13 Inches
Access into both front flippers and mouth for easy manipulation; Made from premium soft fabric with embroidered eyes for added safety
$13.99

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.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.