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

To finish a Firefox run reliably, use Playwright’s bundled, patched Firefox binary; register the stealth plugin on Playwright’s Firefox instance before launching or navigating; and wait for an application-specific readiness signal instead of an arbitrary network event. The popular puppeteer-extra-plugin-stealth package is optimized for Chromium, so disable or replace evasions that assume Chrome versions, APIs, or identity strings. Add explicit timeouts, diagnostics, and finally-block cleanup so a timeout is observable and never leaves Firefox processes behind.

The supported execution pattern

Firefox stealth is an integration problem, not a single switch. A run can fail because the wrong browser binary was used, a plugin hook was registered too late, an evasion parsed a Firefox value as if it were Chrome, or the page never reached the wait condition you selected.

Install the browser and integration

Install Playwright, download its managed browsers, and install the Playwright-compatible wrapper you intend to use. The following commands illustrate the common playwright-extra integration:

npm install playwright playwright-extra puppeteer-extra-plugin-stealth
npx playwright install firefox

Use the exact package names and import style documented by the integration you choose. Some wrappers, including @mr_ozio/playwright-stealth, expose their own initialization and page-hook behavior; do not assume that a Puppeteer example can be copied unchanged.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Philips 24 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 241V8LB
  • CRISP CLARITY: This 23.8″ Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors
  • WORK SEAMLESSLY: This sleek monitor is virtually bezel-free on three sides, so the screen looks even bigger for the viewer. This minimalistic design also allows for seamless multi-monitor setups that enhance your workflow and boost productivity
  • A BETTER READING EXPERIENCE: For busy office workers, EasyRead mode provides a more paper-like experience for when viewing lengthy documents

Use the bundled Firefox build

Playwright’s Firefox build contains patches that Playwright expects. Microsoft’s Playwright documentation states that branded, consumer-installed Firefox is unsupported because Playwright relies on those patches. Unless you have verified a specific supported path, do not pass a system executable through executablePath. A system binary can produce different protocol behavior, preferences, and detection signals from the managed build.

A runnable JavaScript baseline

This pattern registers the plugin before launch, creates the context and page only after launch, navigates after initialization, and closes resources even when navigation or assertions fail.

import { firefox } from 'playwright-extra';
import StealthPlugin from 'puppeteer-extra-plugin-stealth';

const stealth = StealthPlugin();
// Start with the default set only as an experiment. See the Firefox notes below.
firefox.use(stealth);

const browser = await firefox.launch({
  headless: true,
  timeout: 30_000
});

let context;
try {
  context = await browser.newContext({
    viewport: { width: 1366, height: 900 }
  });
  const page = await context.newPage();

  page.on('console', message => {
    console.log(`[console:${message.type()}] ${message.text()}`);
  });
  page.on('pageerror', error => {
    console.error('pageerror:', error);
  });

  await page.goto('https://example.test', {
    waitUntil: 'domcontentloaded',
    timeout: 45_000
  });

  // Replace this with a signal that means “the application is ready”.
  await page.locator('[data-app-ready="true"]').waitFor({
    state: 'visible',
    timeout: 30_000
  });

  console.log('Firefox run finished');
} finally {
  if (context) await context.close();
  await browser.close();
}

The selector in the example is deliberately application-specific. If the target has no such marker, choose one of the readiness strategies below rather than waiting forever for an event the site does not emit.

Why plugin ordering changes the result

playwright-extra exposes browser-specific instances. Register the plugin on firefox before firefox.launch(). Create contexts and pages only after launch, then navigate only after the integration has installed its hooks. Registering after a page has already navigated cannot retroactively alter requests, page creation, or initialization code.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Philips 22 Inch Computer Monitor FHD 100Hz VA VESA Flicker-Free, 221V8LB
  • CRISP CLARITY: This 22 inch class (21.5″ viewable) Philips V line monitor delivers crisp Full HD 1920x1080 visuals. Enjoy movies, shows and videos with remarkable detail
  • 100HZ FAST REFRESH RATE: 100Hz brings your favorite movies and video games to life. Stream, binge, and play effortlessly
  • SMOOTH ACTION WITH ADAPTIVE-SYNC: Adaptive-Sync technology ensures fluid action sequences and rapid response time. Every frame will be rendered smoothly with crystal clarity and without stutter
  • INCREDIBLE CONTRAST: The VA panel produces brighter whites and deeper blacks. You get true-to-life images and more gradients with 16.7 million colors
  • THE PERFECT VIEW: The 178/178 degree extra wide viewing angle prevents the shifting of colors when viewed from an offset angle, so you always get consistent colors

Wrappers that document page-level hooks may require an explicit readiness step before the first navigation. Follow that wrapper’s current API; the important invariant is that every hook needed for the initial document is active before page.goto().

Firefox-specific stealth risks

Stealth packages commonly contain independent evasions. A plugin can attach successfully to Firefox while one of those evasions still assumes Chromium. Treat each evasion as code that must be compatible with the browser engine, not as a guarantee that the whole bundle is portable.

Risk What it looks like Safer response
Chrome-version parsing An evasion reads a Firefox identity such as “Firefox Headless” and attempts to parse it as a Chrome version. Disable that evasion, upgrade or change the integration, and rerun the smallest failing flow.
Chromium-only APIs Initialization throws, a property is absent, or a value is silently unchanged in Firefox. Reduce the enabled evasions and inspect the plugin source or documentation for browser support.
Identity mismatch The page receives internally inconsistent user-agent, platform, vendor, or browser-version values. Prefer Firefox-native values; do not force Chrome-style identities merely to match a Chromium recipe.
Late registration The first document is detected differently from later pages. Register before launch and complete any documented page-hook initialization before navigation.

The playwright-extra documentation describes the widely used stealth plugin as optimized for Chromium-based browsers. Firefox compatibility therefore has to be established per evasion and per target site.

Define what “finished” means

A navigation promise resolving does not necessarily mean that a single-page application is usable, a download has completed, or a challenge has passed. Select a wait condition that represents the outcome you actually need.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Dell 24 Monitor - SE2426H - 23.8-inch FHD (1920x1080) 144Hz 1ms Display, in-Plane Switching (IPS) Technology, AMD FreeSync™, TÜV 3-Star 2X HDMI, Tilt
  • Clear visuals. Fluid motion: A 144Hz refresh rate and 1ms MPRT deliver smooth, tear‑free motion across work, gaming, and streaming for clearer, more fluid viewing.
  • Eye comfort: TÜV Rheinland 3‑star* certification reduces harmful blue light while preserving stunning color quality without compromise. *TÜV Rheinland 3-star eye comfort certification.
  • Wide viewing angle: Get consistent views across a wide 178° /178° viewing angle.
  • In-Plane Switching (IPS): See excellent color accuracy and consistency across wide viewing angles with In-plane Switching (IPS) technology.
  • Ultra-thin bezels: Maximize your viewing experience with thin bezels.
Goal Useful signal Typical mistake
Initial HTML is available waitUntil: 'domcontentloaded' Assuming client-rendered data is already present.
Important resources have settled A targeted selector, application event, or a bounded delay after a known state change. Using a global network-idle condition on a page with analytics, polling, or chat requests.
Authenticated dashboard is ready A stable dashboard selector plus a check for an error or login element. Checking only the URL, which may change before data loads.
File download is complete Playwright’s download event and a saved path, followed by file validation. Waiting for page navigation; downloads may not navigate at all.
Bot challenge outcome is known Inspect the rendered result, response status where available, and challenge-specific page markers. Treating a timeout as proof that stealth was detected.

Always bound each wait with a timeout. A page can continue making background requests indefinitely, so “wait for network idle” is not a universal completion test.

Instrumentation that makes a failed run diagnosable

Capture evidence at the first failing event, not only after the final timeout.

  • Log Playwright, Node.js, the stealth integration, and browser versions.
  • Record the URL, headless or headful mode, launch options, enabled evasions, timeout values, and whether a persistent profile was used.
  • Listen for console, pageerror, request failures, and browser disconnection events.
  • Save a screenshot and HTML when the readiness check fails.
  • Enable a Playwright trace for a reproducible diagnostic run, then inspect the action timeline, network activity, and page snapshot.
page.on('requestfailed', request => {
  console.error('requestfailed', request.url(), request.failure());
});

await page.screenshot({ path: 'firefox-failure.png', fullPage: true });
console.log((await page.locator('body').innerText()).slice(0, 4000));

Use a clean, non-persistent context while isolating a problem. Add a persistent profile only when the workflow genuinely requires stored cookies or local state; profiles introduce another variable, including extensions, stale storage, and service-worker state.

A controlled debugging sequence

Change one axis at a time and keep the URL, account state, timeout, and network conditions constant.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Samsung 27" Essential S3 (S36GD) Series FHD 1800R Curved Computer Monitor
  • CURVED FOR ENHANCED ENGAGEMENT: An immersive viewing experience with a curved monitor that wraps more closely around your field of vision; It creates a wider view, enhancing depth perception and minimizing peripheral distraction
  • SMOOTH PERFORMANCE FOR SEAMLESS CONTENT: Stay in the action when playing games, watching videos, or working on creative projects; The 100Hz refresh rate reduces lag and motion blur so you don't miss a thing in fast-paced moments¹
  • MORE GAMING POWER: Gain the edge with optimizable game settings; Color and image contrast can be adjusted to see scenes more vividly and spot enemies hiding in the dark; Game Mode adjusts any game to fill the screen so you can view every detail²
  • KEEP IT EASY ON THE EYES: Care for your eyes and stay comfortable, even during long sessions; Advanced eye comfort technology certified by TÜV reduces eye strain by minimizing blue light and reducing irritating screen flicker²
  • INCREASED VERSATILITY: Connect to more; Plug devices straight into your monitor for increased flexibility, making your computing environment even more convenient
  1. Run the flow in Playwright Firefox with the managed binary and no stealth plugin.
  2. Run the same flow with the plugin enabled and its full default set.
  3. Disable one suspected evasion, especially any user-agent or browser-version override, and repeat.
  4. Compare Firefox with Playwright Chromium to separate an engine issue from a general automation issue.
  5. Compare headless and headful modes. A difference is a diagnostic clue, not proof that one mode is universally safer.
  6. Compare a clean context with a persistent profile only after the basic flow is stable.
  7. Repeat from a different network or IP when the target may be applying reputation or rate controls.

Keep the first event that diverges: a launch error, a failed request, a console exception, a challenge page, a missing selector, or a timeout. This is more useful than labeling the entire run “stealth failed.”

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common failure modes and fixes

Firefox launches, but the first navigation fails

Confirm that npx playwright install firefox completed and that the script is not supplying a branded Firefox executable. Check the launch log for executable-path overrides and run once without the plugin. If the unmodified Firefox flow works, re-enable evasions incrementally.

An evasion throws a version-parsing error

A documented Firefox issue involved a user-agent override attempting to parse “Firefox Headless” as a Chrome-style version. Disable that specific evasion or use an integration version that handles Firefox correctly. Do not “fix” the error by replacing Firefox’s identity with a fabricated Chrome identity.

The script waits until timeout although the page is visible

Inspect the selector and frame in which the application rendered. Replace a broad network-idle wait with a visible, stable application marker, and log the page URL, title, body text, and failed requests at timeout. A page that is visually complete may still have long-polling or analytics requests.

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.
Best Value
Sale
Sceptre New 22-Inch Gaming Monitor, FHD 1080p, Up to 144Hz, HDMI, DisplayPort, Built-in Speakers, Machine Black (E225W-FW144 Series, 2026)
  • 【INTEGRATED SPEAKERS】Whether you're at work or in the midst of an intense gaming session, our built-in speakers provide rich and seamless audio, all while keeping your desk clutter-free.
  • 【EASY ON THE EYES】 Protect your eyes and enhance your comfort with Blue-Light Shift technology. This feature reduces harmful blue light emissions from your screen, helping to alleviate eye strain during long hours of use and promoting healthier viewing habits.
  • 【WIDEN YOUR PERSPECTIVE】Our sleek minimal bezel design ensures undivided attention. The nearly bezel-free display seamlessly connects in a dual monitor arrangement, delivering an unobstructed view that lets you focus on more at once, completely distraction-free.

A download never completes

Wait for the download event rather than navigation, and save the returned file before closing the context. If the flow fails only with stealth enabled, reduce evasions and inspect the browser-version and user-agent overrides first.

A Cloudflare or similar challenge still blocks the run

There is no universal Firefox pass. One issue report described repeated Cloudflare failures with Playwright plus stealth while the reporter said Puppeteer plus stealth worked under comparable headful conditions; that report is anecdotal and does not isolate the cause. Compare browser engine, mode, binary, network, cookies, and enabled evasions, and treat the result as site-specific.

Firefox processes remain after an exception

Put context and browser closure in finally, as in the baseline. If a launch fails before browser exists, guard the cleanup; if a context closes unexpectedly, still attempt browser closure and record the original error.

What stealth can—and cannot—promise

Stealth reduces commonly observed automation signals; it does not make every Firefox run indistinguishable from a human browser. The stealth project describes detection as an ongoing cat-and-mouse problem and does not promise universal undetectability. Report results with their conditions: browser build, headless state, plugin and evasion list, target URL, network, date, and detector behavior. No authoritative Firefox success-rate percentage is established here, so do not publish one without a controlled, dated benchmark.

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

Or skip the browser setup

If your actual deliverable is a clean image or PDF rather than an interactive Firefox session, ScreenshotNeo provides a single-call website screenshot API. It accepts consent banners before capture and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be disabled. Bot checks, CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the result with X-Page-Verdict and X-Billed headers. It also offers an MCP server with take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients.

One-call cURL example (see the ScreenshotNeo documentation for all parameters):

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

The same request in Python:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
r.raise_for_status()
open("shot.webp", "wb").write(r.content)

And in Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
await Bun.write('shot.webp', res);

ScreenshotNeo’s Free plan includes 1,000 screenshots per month with no card. Paid plans start at $5 for 3,000 shots; every feature is available on every plan, and yearly billing gives two months free. Create a free ScreenshotNeo account to start.

Firefox-run checklist

  • Managed Playwright Firefox is installed and no unsupported branded executable is selected.
  • The Firefox-specific plugin instance is configured before launch.
  • Page hooks are ready before the first navigation.
  • Chromium-only evasions are disabled or verified individually.
  • Readiness is defined by an application signal, not an unbounded wait.
  • Console, page errors, failed requests, screenshots, and traces are available for failures.
  • Contexts and browsers close in a finally block.
  • Any detection result is reported for its exact browser, mode, plugin, site, and network conditions.

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.