Run Web Automation Tests at Scale with Agentic AI

Generate tests with AI agents or automate test suites with Selenium, Playwright and other frameworks. Run tests in parallel on TestMu AI scalable cloud grid.

Puppeteer 26: Breaking Changes and How to Upgrade

Puppeteer 26.0.0 changes page.click() on covered elements, Shift typing, targets() and installExtension(). Real 25.19 vs 26 output, fixes and upgrade steps.

Summarise with AI

Move a suite from Puppeteer 25.19.0 to 26.0.0 and the same page.click() call can land on a different element. On the Selenium Playground, a click on a button that sits under the sticky site header hits the header logo on 25.19.0 and opens the homepage. On 26.0.0, the same line scrolls the button to the center of the viewport and clicks it.

Puppeteer 26.0.0 shipped on December 2, 2026 with four breaking changes and three new features, according to the puppeteer-core 26.0.0 release notes.

The click change has the widest reach, because every click in a suite now goes through the new check and a silent misclick becomes an error or a timeout.

Each Puppeteer 26 breaking change below comes with before-and-after output from the same Chrome session on TestMu AI, followed by the deprecated APIs the release kept and the upgrade and rollback steps. If you are new to the library, start with the Puppeteer tutorial.

TL;DR

Puppeteer 26.0.0 is the December 2, 2026 major release of the JavaScript browser automation library. Its breaking changes touch clicks, keyboard input, target lists and the extension API, while Node.js 22.12+ and Chrome 158 stay the same as in 25.19.0. The change with the widest reach is that page.click() no longer clicks through a covering element.

  • page.click(): In Puppeteer 26, page.click() and ElementHandle.click() scroll a covered element to the viewport center, then throw "Node is covered by ... at the click point" if something still sits on the click point. Fix: pass checkCoverage: false on a single click to skip the check.
  • keyboard.type(): In Puppeteer 26, a held Shift key uppercases single characters typed over the Chrome DevTools Protocol, matching WebDriver BiDi. With Shift down, keyboard.type('testmu') types TESTMU on Puppeteer 26 and testmu on Puppeteer 25.
  • browser.targets(): In Puppeteer 26, browser.targets() and the targetcreated event include a tab target for every tab. Fix: filter on target.type() === 'page' and an empty subtype() before you count targets or match one by URL.
  • browser.installExtension(): In Puppeteer 26, installExtension() resolves to an Extension object instead of an ID string, and Realm.extension() is synchronous. Fix: read extension.id wherever code used the returned string.
  • Requirements: Node.js upgrade needed for Puppeteer 26: No, 22.12+ is the minimum in both 25.19.0 and 26.0.0. Browser: Chrome for Testing 158.0.8127.91 and Firefox 161.0, the same major versions as Puppeteer 25.
  • How to upgrade: Run one script on Puppeteer 25.19.0 and 26.0.0 against the same browser version to see which tests change. TestMu AI runs both versions on its cloud grid with video and console logs for each session.

Puppeteer 26 at a Glance

Puppeteer 26.0.0 downloads Chrome for Testing 158.0.8127.91, up from 158.0.8127.88 in Puppeteer 25.19.0, and both versions support Firefox 161.0, according to the Puppeteer supported browsers table.

The browser stays on the same major version, so every breaking change in the table below comes from the library.

ChangeAPIs affectedWhat you see after upgradingFix
Covered-element check before clickspage.click(), ElementHandle.click(), locator clicksNode is covered by <div#overlay> at the click point, or a locator TimeoutErrorWait for the overlay to go, or pass checkCoverage: false
Shift applies to single-character keys over CDPkeyboard.type(), keyboard.press() with Shift heldtestmu becomes TESTMURelease Shift before typing, or type the case you want
Tab and prerender targets exposedbrowser.targets(), targetcreated, targetFilterExtra tab targets in lists and eventsFilter on type() === 'page' and no subtype()
Extension API reworkedinstallExtension(), uninstallExtension(), Realm.extension()An Extension object where code expected an ID stringRead extension.id; drop the await on Realm.extension()
  • Node.js - Puppeteer 26 needs Node.js 22.12 or later, per the Puppeteer system requirements.
  • Unchanged minimum - The puppeteer 25.19.0 package already declares node >=22.12.0 in its engines field.
  • CI images - An image that runs Puppeteer 25 today needs no Node.js change for the upgrade.
  • New APIs - Target.subtype(), Target.parent(), Target.isUnloaded() and a public TargetType.TAB value arrive with the target changes.
  • Protocol scope - The keyboard change applies to CDP sessions only, because WebDriver BiDi already applied Shift. The covered-element check sits in the shared ElementHandle.click() code.

Puppeteer 26 Clicks Now Check for Covered Elements

Before pull request #15695, click() clicked whatever was on top of the click point, so an element inside the viewport but covered by a sticky header was clicked through to the header. Now click() checks which element is at the click point; if another element is there, it scrolls the target to the center of the viewport, checks again, and throws if the point is still covered.

The script below exercises three of the four breaking changes on the Selenium Playground. Install puppeteer-core@25.19.0, run it, then install puppeteer-core@26.0.0 and run it again. It connects to Chrome on the TestMu AI grid, so both runs use the same browser build.

// check-puppeteer-26.mjs
// npm i puppeteer-core@25.19.0 (or @26.0.0), then: node check-puppeteer-26.mjs
import puppeteer from 'puppeteer-core';

const capabilities = {
  browserName: 'Chrome',
  browserVersion: 'latest',
  'LT:Options': {
    platform: 'Windows 11',
    build: 'Puppeteer 26 upgrade check',
    name: 'puppeteer-core behavior diff',
    user: process.env.LT_USERNAME,
    accessKey: process.env.LT_ACCESS_KEY,
    video: true,
    console: true,
  },
};

const browser = await puppeteer.connect({
  browserWSEndpoint: `wss://cdp.lambdatest.com/puppeteer?capabilities=${encodeURIComponent(JSON.stringify(capabilities))}`,
});
const page = await browser.newPage();
await page.setViewport({ width: 1280, height: 720 });
const url = 'https://www.testmuai.com/selenium-playground/simple-form-demo/';
await page.goto(url, { waitUntil: 'networkidle2' });

// 1. Shift held while typing
await page.click('#user-message');
await page.keyboard.down('Shift');
await page.keyboard.type('testmu');
await page.keyboard.up('Shift');
console.log('Shift + type:', await page.$eval('#user-message', el => el.value));

// 2. Button scrolled under the sticky site header
await page.$eval('#user-message', el => { el.value = 'hello'; });
await page.evaluate(() => {
  const top = document.querySelector('#showInput').getBoundingClientRect().top;
  window.scrollBy(0, top - 15);
});
await page.click('#showInput');
console.log('After click, URL:', page.url());

// 3. Button under a full-page overlay
await page.goto(url, { waitUntil: 'networkidle2' });
await page.evaluate(() => {
  const overlay = document.createElement('div');
  overlay.id = 'overlay';
  overlay.style.cssText = 'position:fixed;inset:0;z-index:99999';
  document.body.append(overlay);
});
try {
  await page.click('#showInput');
  console.log('Overlay click: no error');
} catch (error) {
  console.log('Overlay click:', error.message);
}

// 4. Target types
console.log('targets():', browser.targets().map(t => t.type()).join(', '));
await browser.close();

Both runs below used Chrome 158.0.8127.108 on Windows 11, so every difference in the output comes from the library:

# puppeteer-core 25.19.0
Shift + type: testmu
After click, URL: https://www.testmuai.com/
Overlay click: no error
targets(): browser, other, other, page, other, page

# puppeteer-core 26.0.0
Shift + type: TESTMU
After click, URL: https://www.testmuai.com/selenium-playground/simple-form-demo/
Overlay click: Node is covered by <div#overlay> at the click point
targets(): browser, tab, other, page, other, tab, page, other

Sticky Headers No Longer Take the Click

The playground's site header uses CSS position sticky and is 64 pixels tall. After the script scrolls the button to 15 pixels below the top of the viewport, the element at the button's center is the header logo image.

  • Puppeteer 25.19.0 - scrollIntoViewIfNeeded() sees the button inside the viewport and does not scroll. The click lands on the logo and the page navigates to the homepage, while the test carries on.
  • Puppeteer 26.0.0 - The coverage check finds the header at the click point, scrolls the button to the center, and clicks it. The "Your Message" panel shows hello.
Side-by-side screenshots: Puppeteer 25.19.0 click on a button under a sticky header opened the TestMu AI homepage, while Puppeteer 26.0.0 clicked the button and showed hello

Flaky clicks near sticky headers, cookie bars and floating chat buttons can stop failing after the upgrade, because the click now reaches the element you asked for.

Overlays Now Throw Node Is Covered

When the element is still covered after the scroll, as it is under a modal backdrop or a full-page loading overlay, 26.0.0 throws Node is covered by <div#overlay> at the click point. Puppeteer 25.19.0 clicked the overlay and returned without an error. The message names the covering element, which tells you what to wait for.

  • Not counted as covering - The target itself, its descendants, its ancestors and elements inside its labels, so a hidden checkbox behind a styled label still clicks.
  • Child frames - The check does not run for elements inside an iframe.
  • hover() - Hovering still moves the mouse to the center without the check.
  • offset - The check tests the same point the click uses, so a click at an uncovered offset still works.

The usual fix is to wait for the covering element to leave before the click:

// Wait for the overlay to leave, then click
await page.waitForSelector('#overlay', { hidden: true });
await page.click('#showInput');

Locator Clicks Time Out Instead of Throwing

A locator retries its action until the locator timeout runs out, so a covered element never surfaces the "Node is covered" message. On the overlaid button, the 26.0.0 locator click below failed with a TimeoutError after its 3-second limit, while 25.19.0 resolved in about a tenth of a second.

await page.locator('#showInput').setTimeout(3000).click();
// 25.19.0: resolves and clicks the overlay
// 26.0.0:  TimeoutError: Timed out after waiting 3000ms

Without setTimeout(), a locator waits for the page's default timeout, so new locator timeouts after the upgrade usually point to a covered element rather than a slow page. The Puppeteer timeout guide covers how each limit is set.

How to Turn Off the Coverage Check

ClickOptions has a checkCoverage option with a default of true. Set it to false to skip the check and click even if the click point is covered.

The 26.0.0 release notes do not mention the option, and the 25.19.0 type definitions do not have it. Locator clicks accept it too.

// Skip the coverage check for one click
await page.click('#showInput', { checkCoverage: false });

// Locators accept the same option
await page.locator('#showInput').click({ checkCoverage: false });

Set it on the individual click that is meant to go through a transparent layer. Turning it off across a suite brings back the misclicks the check was added to catch.

Note

Note: When a Puppeteer 26 click throws or times out in CI, the session video shows what covered the element. Run your Puppeteer scripts on TestMu AI with video, console and network logs for every session. To try it, start free

Shift Now Uppercases keyboard.type() Over CDP

Pull request #15856 fixes a CDP gap. Single-character key definitions such as a had no Shift variant, so press('a') and type('a') inserted lowercase text while Shift was held. WebDriver BiDi already applied Shift, so the two protocols typed different text from the same code. The pull request lists these results on Chrome 158:

Call with Shift held25.19.0 (CDP)26.0.0 (CDP)WebDriver BiDi
press('a') + type('a')aaAAAA
type('aB1!~ z')aB1!~ zAB1!~ ZAB1!~ Z
press('KeyA')AAA
  • Affected - Tests that hold Shift for a selection or a shortcut and then type text, and assertions that expect the lowercase result.
  • Unaffected - Typing without a modifier, keys named by code such as KeyA, and keyboard.sendCharacter(), which still ignores Shift on both protocols.

To keep lowercase text after a Shift action, release Shift before you type:

// Extend a selection with Shift, then type lowercase text
await page.keyboard.down('Shift');
await page.keyboard.press('ArrowLeft');
await page.keyboard.up('Shift');      // release before typing on 26.0.0
await page.keyboard.type('testmu');

Tab and Prerender Targets in browser.targets()

Over CDP, Puppeteer now reports every target it attaches to, per pull request #15753. Each tab has a tab target and a page target, and a prerendered page shows up as a target with the subtype prerender.

In the check script output, the two pages on 26.0.0 come with two extra tab entries.

  • Event counts - One browser.newPage() fires targetcreated twice on 26.0.0 (tab, then page) and once on 25.19.0. browser.pages() still returns one Page per tab.
  • URL matching - The release notes warn that code matching targets by URL can get the wrong target. On Chrome 158, the tab targets reported an empty URL or about:blank, so a URL predicate still found the page, but the type filter below removes the risk.
  • targetFilter - A filter that drops page targets no longer hides tabs, because their tab targets still attach. Filtering out tab targets removes the pages inside them too.
// Match the page target, not the tab or a prerender
const target = await browser.waitForTarget(t =>
  t.type() === 'page' && !t.subtype() && t.url() === url
);
const popup = await target.page();
const browser = await puppeteer.connect({
  browserWSEndpoint,
  // 26.0.0: a filter that drops page targets must drop tab targets too
  targetFilter: target => target.type() !== 'page' && target.type() !== 'tab',
});

The release also adds methods for working with the new targets. Over WebDriver BiDi, subtype() and parent() return undefined.

  • Target.subtype() - Returns the CDP subtype, such as prerender.
  • Target.parent() - Returns the target Puppeteer attached through, such as the tab of a page target.
  • Target.isUnloaded() - Added in pull request #15783, it returns true for a tab with no loaded document, such as a discarded tab or one that crashed, and false over WebDriver BiDi.
Test across 3000+ browser and OS environments with TestMu AI

installExtension() Returns an Extension Object

Pull request #15911 reworks the extension API. browser.installExtension() now resolves to an Extension object, uninstallExtension() takes the object or an ID string, and Realm.extension() no longer returns a Promise.

// 25.19.0
const id = await browser.installExtension('/path/to/extension');
await browser.uninstallExtension(id);

// 26.0.0
const extension = await browser.installExtension('/path/to/extension');
console.log(extension.id);                    // the ID string moved here
await browser.uninstallExtension(extension);  // an ID string still works

// Realm.extension() is synchronous now
const owner = realm.extension();              // Extension | null, no await
  • TypeScript projects - The compiler flags every place that treats the return value as a string.
  • Plain JavaScript - Code that compares or concatenates the returned ID now gets an object, so read extension.id instead.
  • Realm.extension() - It reads a cache that installExtension() and browser.extensions() fill. For an extension Puppeteer did not install, call browser.extensions() first or it can return null.
  • WebDriver BiDi - installExtension() returns a minimal object with only id and path, and its workers(), pages() and triggerAction() throw UnsupportedOperation.

Other Fixes in Puppeteer 26.0.0

The rest of the 26.0.0 release notes are fixes that need no code changes:

  • page.pdf() - It no longer modifies the options object you pass in, and it restores the page's default background when PDF generation fails.
  • asFetchRequest() - It skips HTTP/2 pseudo-headers when it converts an intercepted request.
  • Accessibility snapshots - They now include iframes that carry role="presentation".
  • WebDriver BiDi - evaluate() accepts objects with a null prototype as arguments, and page load events fire only for the main frame.
  • captureHeapSnapshot() - It no longer crashes over CDP when it cannot open the output file.
  • Exposed functions over WebDriver - A call is rejected when its result cannot be serialized.

Deprecated APIs Puppeteer 26 Still Ships

The Puppeteer v26 tracking issue, opened in April 2026, plans to remove postData() in favor of fetchPostData(), the deprecated drag and drop APIs, the page-level cookie API and setUserAgent() with positional attributes.

None of those removals shipped in 26.0.0. Each API below is still in the 26.0.0 type definitions, marked @deprecated, so code that uses it keeps working on Puppeteer 26:

Deprecated APIReplacement
HTTPRequest.postData()HTTPRequest.fetchPostData()
page.cookies(), page.setCookie(), page.deleteCookie()Browser.cookies() or BrowserContext.cookies() and their setters
page.setUserAgent(userAgent, metadata)page.setUserAgent({ userAgent, userAgentMetadata })
dragEnter() and dragOver()Nothing; dragging performs both events itself

The tracking issue keeps these on its removal list, so moving to the replacements during this upgrade saves a second round of fixes at the next major release.

How to Upgrade to Puppeteer 26

  • Bump on a branch with an exact version. The puppeteer package downloads Chrome for Testing 158.0.8127.91 on install; puppeteer-core uses the browser you point it at.
    git switch -c chore/puppeteer-26
    npm install puppeteer@26.0.0 --save-exact   # or puppeteer-core@26.0.0
  • Search for the affected APIs. The pattern finds the extension calls, target lists and events, targetFilter and Shift presses. Clicks need a run, because every click can be affected.
    grep -rnE --include='*.js' --include='*.ts' --exclude-dir=node_modules "installExtension|uninstallExtension|\.extension\(\)|targetcreated|\.targets\(\)|waitForTarget|targetFilter|keyboard\.down\(['\"]Shift" .
  • Run the suite on 26.0.0 against the browser version you used with 25.19.0. Sort failures into covered elements ("Node is covered" errors and new locator timeouts), letter case after Shift, target counts, and extension IDs.
  • Fix each group. Wait for or dismiss the covering element, release Shift before typing, filter targets by type, and read extension.id. Keep checkCoverage: false for clicks that are meant to pass through a layer.
  • Roll back if you need to. Pin 25.19.0 and revert the extension.id and checkCoverage changes, which 25.19.0 does not understand.
    npm install puppeteer@25.19.0 --save-exact   # or puppeteer-core@25.19.0

Running Puppeteer 25 and 26 Side by Side on a Cloud Grid

The output in this guide comes from one script connected to the same Chrome build on TestMu AI, run once per puppeteer-core version. Keeping the browser constant is what makes the comparison useful, so set browserVersion to a fixed version instead of latest when the two runs happen on different days.

TestMu AI Automation Cloud runs existing Puppeteer scripts across 3,000+ browser and OS combinations in parallel, with no grid to maintain. Every session records network logs, console logs, video, screenshots and a command-by-command replay, so a 26.0.0 click that throws "Node is covered" comes with a recording of what sat on top of the element.

  • Connection - puppeteer.connect() with the capabilities in the check script; the capabilities for Puppeteer doc lists the options, including browser version and platform.
  • Two builds - Give each library version its own build name so the dashboard shows 25.19.0 and 26.0.0 runs next to each other.
  • Product page - The Puppeteer testing page covers how TestMu AI runs Puppeteer suites at scale.

Should You Upgrade to Puppeteer 26 Now?

Yes for most suites. The browser stays on Chrome 158, Node.js 22.12 is already the minimum on 25.19.0, and the click change turns misclicks that used to pass silently into errors you can see. Plan extra time if your suite types under a held Shift key in many places or counts targets, because those fixes touch more files.

If the new click checks are making you compare libraries, Puppeteer vs Playwright compares how the two wait before acting on an element, and the Playwright 1.65 release lists the breaking changes on the other side. Teams weighing a wider move can read the Puppeteer alternatives roundup.

Conclusion

Start the Puppeteer 26 upgrade by running the check script on 25.19.0 and 26.0.0 against the same browser, then search your suite with the pattern above. Most fixes are a wait for an overlay, a type filter on targets, or a read of extension.id. For the rest of the API, see the Puppeteer browser automation guide.

Testing from the terminal? Kane CLI by TestMu AI lets SDETs and developers plan, write, run and debug tests from the command line.

To run your first test, start free, or
for a full walkthrough of the product.

Was this helpful?

Authors

Sri Harsha

Sri Harsha

Author · 20 posts

Sri Harsha is Engineering Manager of the Open Source Program Office at TestMu AI, where he leads open-source engineering behind the Selenium and Appium automation grid and builds agentic AI systems for quality engineering. He is a member of the Selenium Technical Leadership Committee and a committer to WebdriverIO and Appium, and was recognized with the LambdaTest Delta Award 2023 for Best Contributor in open-source testing. He brings over 10 years of experience in software testing and automation, with earlier roles at EPAM Systems and ZenQ. Sri Harsha holds a B.Tech in Computer Science from Jawaharlal Nehru Technological University.

Srinivasan Sekar

Srinivasan Sekar

Reviewer

Srinivasan Sekar is Director of Engineering at TestMu AI, where he leads engineering and open-source initiatives behind the Selenium and Appium automation grid and owns TestMu AI's MCP Server. A committer to Appium and a contributor to Selenium, WebdriverIO, Taiko, and AppiumTestDistribution, he brings over 15 years of experience in quality engineering and open-source technologies. He is the author of the Apress book 'The MCP Standard: A Developer's Guide to Building Universal AI Tools with the Model Context Protocol,' a Certified Kubernetes and Cloud Native Associate, and an international conference speaker. Before TestMu AI he spent over eight years at Thoughtworks as a Principal Consultant and Quality Architect. Srinivasan holds a B.Tech in Information Technology from Anna University.

Puppeteer 26 FAQs

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests