Back to Knowledge Hub
Getting Started

Undetected Chromedriver: Browser-Layer Alternatives

Compare undetected-chromedriver with browser-layer configuration by ownership, update surface, and the evidence an authorized fixture can record.

BotBrowser Team

Documentation

Want the structured docs for Getting Started?

This article lives in the editorial library. For step-by-step setup, reference material, and ongoing updates, jump into the docs section.

The phrase “undetected browser” describes an outcome claimed by a detector, not a stable property of a browser binary. The public undetected-chromedriver project describes itself as a patched ChromeDriver, while a browser-layer profile is a different way to provide browser configuration. Those approaches have different owners, update surfaces, and evidence requirements. A team comparing them should first ask which layer changes a value and then measure only an authorized page it owns. BotBrowser documents browser-level profile configuration and automation-consistency boundaries; it does not patch undetected-chromedriver, maintain compatibility with that package, or promise a site or detector verdict.

Comparison of page-level patches, driver and binary changes, and browser-core supplied values with their evidence boundaries

TL;DR

  • The undetected-chromedriver README describes an automatically downloaded and patched driver. That is the project's description of its implementation, not an independently verified result for every release or target.
  • A browser package, a WebDriver driver, and the browser core are separate owners. A change at one layer does not establish that another layer changed or that a site accepted the session.
  • Record the exact package and browser versions, requested options, returned capabilities, fixture origin, observed API, and expected-value comparison. Label sample records as illustrative unless they come from an actual run.
  • Use only an owned or explicitly authorized fixture. This comparison does not provide instructions for evading a detector or interacting with a third-party challenge.
  • A browser-visible value such as navigator.webdriver is evidence about that browser session, not proof of identity, authorization, or a detector's decision.

Contents

The public project description has a scope

The repository README describes undetected-chromedriver as a ChromeDriver patching project. It says that the package automatically downloads the driver binary and patches it; its example constructs a Python driver with headless=True and use_subprocess=False. These statements establish what the project publicly presents and what its example invokes. They do not establish a current compatibility matrix, prove that every patch is active in a particular installation, or show what a separate website will decide. For a surface-by-surface record of that patching work, undetected-chromedriver: what the driver patches separates what the rewritten binary changes from what the stock Chrome build and the host still decide.

The source map below is fixed to commit 757ed6a22052f0674bb7c9f765ca884d15dcb780, not the moving default branch. It separates changes to the driver executable from options assembled for Chrome startup. File and function names identify the component to inspect; they are not evidence that a local installation executed that path.

Pinned public sourceVisible actionMaintenance boundary
patcher.py, Patcher.patch_exe, lines 366-394Reads the selected driver file, searches for an embedded script block and writes a replacement only inside the matching branchA changed driver layout can leave that branch unentered; merely calling the function does not prove a matching replacement
patcher.py, Patcher.is_binary_patched, lines 358-364Looks for a marker in the selected executable; a missing file returns falseThe marker check is narrower than a complete binary diff or a running-browser observation
__init__.py, Chrome.__init__, lines 292-296 and 369-419Assembles debugging, user-data-directory, language, headless and window options, and resolves the browser executableOption construction is startup configuration, not the binary replacement above; it can fail or change independently

The binary operation targets the selected driver, not the Chrome browser executable. Conversely, a language or window option belongs to browser startup even though the Python package adds it. Neither a marker nor an option list demonstrates native browser behavior or a site's response. The Rebrowser patch-scope comparison examines a different project's framework changes; this package additionally has a resolved driver file and a conditional binary-write branch to account for.

That distinction matters when a README uses strong outcome language. The repository's introduction names anti-bot services and says the project does not trigger them. A reader can accurately report that this claim appears in the README, but the claim is not a universal measurement: it does not specify every service version, browser build, account, network, profile, or date. No tests against those services are performed here, so the introduction is not treated as a result. A detector's result belongs to the detector configuration and the conditions under which its check ran.

The project page and an installed package also represent different moments in time. A repository's default branch can change after a release has been installed. The Python package version, the source commit, the downloaded driver, the Chrome version, and the session options therefore belong in separate fields in a reproducible record. A package name on its own is not enough to reproduce a browser configuration or interpret a failure.

Selenium documents Chrome-specific driver behavior and browser options. An application's site response is a separate observation. The Chrome documentation explains the browser-specific driver integration; the broader WebDriver documentation describes session creation and capabilities. Those sources support the boundary between requesting configuration and observing a negotiated session. They do not validate a third-party patch or determine what a remote site considers acceptable.

The observable surface should be described just as narrowly. MDN documents navigator.webdriver as a read-only property indicating whether the user agent is controlled by automation. It is one signal exposed through the browser API. It is not a browser identity, a permission token, or a public description of every signal a remote service may collect. A page that reads it can report its value; the page cannot infer every part of the driver or package implementation from that value alone.

This source boundary prevents two common category errors. First, source code can establish that a project contains a code path; it cannot by itself establish that the path executed in a particular process. Second, a local fixture can establish what that fixture read; it cannot establish that an unrelated website sampled the same fields or applied the same interpretation. Keep each statement attached to its source and its measurement conditions.

Three layers have different owners

The phrase “browser patch” is too broad to identify what changed. A comparison becomes useful when it distinguishes page JavaScript, WebDriver or driver-package code, and browser-core behavior. These layers have different inputs and update responsibilities. A maintenance issue in one layer should not be attributed automatically to another; the detector-facing signal inventory and Selenium profile integration reference cover the adjacent browser-visible surfaces.

LayerTypical ownerWhat its artifact can establishUpdate surfaceWhat it cannot establish by itself
Page scriptApplication or injected scriptWhich JavaScript code was loaded into a page and which APIs that code attempted to wrapSite bundles, extension or preload script, browser execution orderThat native browser behavior or a remote verdict changed
Driver or packageWebDriver implementation and its packageThe requested session options, driver code, and possibly a downloaded executable versionPackage release, driver download, Selenium and browser compatibilityThat a browser-core value changed or that a site accepted the session
Browser coreBrowser build and its supported configurationValues and behavior produced by that browser build under recorded startup conditionsBrowser release, build flags, profile configuration, platformThat every page reads those values or assigns them the same meaning

A page-level wrapper runs in a JavaScript execution context. It may affect reads made through the objects it touches, but the page can still have other contexts, native paths, or browser-controlled values that the wrapper does not own. Whether those paths matter is a question for an authorized, bounded fixture. A list of APIs in a patch file is not proof that every consumer sees a changed result.

A driver package owns session setup and the driver artifacts it distributes or modifies. The Selenium options object describes requests sent during session creation. The returned capabilities describe the session the remote end negotiated. A requested option and a returned capability are therefore different evidence. Neither one is a complete inventory of page-visible behavior: that requires a page-level measurement under a specified browser build and run configuration.

The browser core is another boundary. A browser-level profile can provide supported values or settings at startup rather than relying on a page script to replace an API after a document begins running. That statement describes where configuration is supplied, not a claim that every property is supported, that every platform behaves identically, or that a remote detector accepts the result. The profile documentation is the source of truth for supported fields and inputs; undocumented behavior should not be inferred from the word “profile.”

These layers can coexist in one run. Selenium may create a session, the browser may load a configured profile, and the page may execute its own scripts. A useful inventory records each owner separately. For example, requestedOptions belongs to the WebDriver request, returnedCapabilities belongs to the negotiated session, profileInput belongs to browser startup, and pageReads belongs to the owned fixture. Combining those values into one label such as “undetected state” hides the boundaries a diagnosis needs.

The update surface follows the owner. A page bundle can change without a browser upgrade; a driver package can change while a browser binary stays fixed; and a browser release can change APIs or defaults while the Python wrapper stays fixed. When a result changes, compare the versioned artifacts first. Otherwise, an apparent regression can be blamed on a component that did not change while the actual input remains unknown.

Version changes create different maintenance work

An automatically managed driver is convenient, but automation has to know which artifact it selected. The README says the package downloads and patches a driver. That makes the resolved package version, download decision, resulting driver path, and browser version important evidence. Do not infer the downloaded executable from an import statement or the browser executable from the driver package's version string.

For this package, diagnosis follows the resolved driver artifact before it reaches the page. Keep the package version and its source revision separate from the driver version: an installed Python release does not identify every executable selected for a session. The browser version is a third field. A source review at the pinned commit explains possible branches; installation and execution evidence establish which branch applied to a particular run.

First unresolved stageEvidence to preserveDecision and next owner
Package or driver resolutionpackageVersion, sourceRevision, requested browser major, sanitized driver path, driverVersion and driverSha256 when availableIf download or file resolution failed, ask the package/driver-resolution owner; there is no page observation yet
Driver modificationWhether the file was already marked, whether modification was attempted, whether the target branch matched, and any verified post-write differenceIf evidence is absent, record unknown. If a target did not match, ask the package patcher owner to compare the pinned source and selected driver layout; do not infer success from a started process
Session creationActual start result, sanitized requested options, returned capabilities and the selected browser versionA modified file does not prove a WebDriver session exists. Route a session error to the driver/browser integration owner before interpreting the fixture
Owned fixture readFixture revision, fresh page read, HTTP status and schema validation, each with its own resultInvestigate the controlled application or browser configuration only after the session exists; a good read does not predict any external service

A hash identifies bytes, not their meaning. In a controlled comparison, distinguish a pre-modification hash from a post-modification hash; equal hashes can mean an already modified file, an unentered branch, or no replacement. Different hashes show a byte change, not its correctness. Do not label an arbitrary hash as an official expected release hash unless its provenance is established. Keep private paths, credentials and unrelated logs out of the shared record.

The pinned patch_exe implementation writes inside its successful-search branch. Therefore an attempted call without branch-level evidence leaves targetMatched unknown. Its log output is not a standardized acceptance report. is_binary_patched searches for a marker, so a positive marker check must not be relabeled as complete verification of the executable or confirmation that it ran. These distinctions are specific to the package's driver-handling path, rather than a generic comparison of page scripts and core values.

The README's beta-testing statement does not supply a compatibility table for a particular Chrome build, operating system or CI image. A changed package, resolved driver or browser is a different input; compare the recorded combination before attributing a regression. A download error, an unverified modification and a session-negotiation error require different evidence and different owners. A 403 response cannot identify any of those causes on its own.

Measure an owned fixture without making a verdict

An owned fixture can check the browser session that actually started. Use a local application or internal test domain whose markup, API calls and expected values are controlled, with synthetic data. First preserve the package/driver stages above, then create a baseline with one declared browser configuration. Change only one input for comparison: a browser upgrade and a package upgrade in the same run prevent attribution.

The proposed record below contains no executed result. null means unavailable or not yet established, never false or successful; an empty requestedOptions array does not assert that the package adds no defaults. packageSourceRevision identifies the source inspected for the explanation. Replace it with the revision actually associated with an installed package before claiming a runtime match. The fields under driverResolution and driverPatch must come from the package/file stage, not be inferred from JavaScript.

{
  "packageName": "undetected-chromedriver",
  "packageVersion": null,
  "packageSourceRevision": "757ed6a22052f0674bb7c9f765ca884d15dcb780",
  "driverResolution": {
    "requestedBrowserMajor": null,
    "driverVersion": null,
    "driverSha256": null,
    "resolved": null
  },
  "driverPatch": {
    "beforeSha256": null,
    "afterSha256": null,
    "alreadyMarked": null,
    "attempted": null,
    "targetMatched": null,
    "byteChangeVerified": null
  },
  "session": {
    "created": null,
    "browserVersion": null,
    "requestedOptions": [],
    "returnedCapabilities": null
  },
  "fixture": {
    "fixtureRevision": null,
    "surface": "navigator.webdriver",
    "expected": null,
    "observed": null,
    "matchesExpected": null,
    "httpStatus": null,
    "schemaValid": null
  }
}

For example, driverResolution.resolved: true together with session.created: false permits a session-setup investigation, but it does not fill in fixture.observed. An observed Boolean false must remain distinguishable from null. Set matchesExpected only when both the expected and observed values are established; null is not a mismatch. Preserve modification hashes separately in beforeSha256 and afterSha256; driverResolution.driverSha256 identifies the resolved file when it was recorded. A recorded driverPatch.attempted: true with targetMatched: null likewise means the attempt is known and the branch result is not. These are interpretation rules for proposed states, not output collected from a test.

A fixture should return the smallest useful response, such as its own revision and the requested navigator.webdriver read. It need not collect canvas data, fonts, local addresses or account identifiers to establish whether that read occurred. If a fresh session was not created, leave its fixture fields unobserved; do not carry forward values from a previous browser process. Record a failed schema independently of the HTTP status because a 200 response can still contain the wrong application data.

A follow-up comparison keeps the same owned fixture revision and application data. Preserve each attempt rather than retrying until a desired record appears, and state any required differences in supported driver setup. A page measurement cannot recover whether the patcher took a binary-write branch. Package/file provenance and page behavior are separate evidence channels, even when they appear in one receipt. No actual BotBrowser or undetected-chromedriver run is claimed here.

Read the record by failure layer

Start with the earliest boundary that failed. If the browser process did not start, page observations do not exist. If session creation failed, do not interpret a stale page value as output from the new session. If the fixture loaded but its schema check failed, report the extraction problem separately from the browser version. This prevents a test report from collapsing several unrelated facts into a single red or green label.

EvidenceWhat it supportsWhat remains unknown
Package lock and source revisionWhich package release or source snapshot was installedWhether every package branch executed in this run
Driver startup log and reported versionWhich driver started and whether session creation progressedHow a remote site interpreted the session
Returned WebDriver capabilitiesWhich session fields the remote end returnedWhether every option changed page-visible output
Owned fixture observationWhat the fixture read under the recorded conditionsWhat an unrelated service sampled or decided
Fixture HTTP status and schema resultWhether the controlled application returned an accepted recordWhether access to a third-party site is authorized or permitted

If the package and browser versions are known but the requested and returned capabilities differ, investigate session setup. If the session exists but the fixture value differs, compare the recorded browser, profile, operating system, and fixture revision. If the fixture result is correct while an external site returns a block page, stop there and follow that site's published access policy. The external response does not identify the responsible signal without evidence from that service.

Keep log excerpts short and redact cookies, authorization headers, account data, profile contents, and machine-specific secrets. A run manifest can be useful without containing a full driver log. Retain the source revision, sanitized options, outcome categories, and enough timestamps to connect the receipt to the CI job. The point is reproducibility, not collecting every possible datum.

Where browser-layer configuration fits

Browser-layer configuration answers a different maintenance question from patching a WebDriver package. It places documented settings at browser startup or in the browser profile rather than relying only on a page-level wrapper or a package-managed driver modification. Whether that is the right choice depends on the supported configuration, the required automation interface, operating-system coverage, and the team's update policy.

BotBrowser's profile configuration documentation describes the supported profile input. Its automation-consistency documentation describes product boundaries around browser automation. Those references can support statements about documented setup and scope. They do not establish that Selenium, a particular Grid, or undetected-chromedriver is supported unless the relevant integration is explicitly documented. A browser executable that starts is not equivalent to a validated WebDriver integration.

The comparison is therefore not “one tool wins.” Ask three narrower questions: Which component owns the change? Which release must be tracked? What evidence confirms the value on a controlled page? A team whose application needs a driver-specific capability may choose a documented WebDriver workflow. A team that needs configuration at the browser layer should evaluate supported profile inputs and the exact browser integration. A team maintaining page scripts must test the contexts those scripts actually affect. These are engineering choices, not universal detection outcomes.

Keep product claims within the published boundary. BotBrowser supplies documented browser-level values through profile configuration; it does not patch a third-party driver or follow that project's release cycle. It cannot guarantee a detector verdict, a site's response, identity, authorization, or access. A profile's existence is not proof that it loaded; use the product's documented loading evidence for that claim. The reader's fixture remains the evidence for the values that fixture observed.

This scope is intentionally narrower than a circumvention tutorial. It does not give a sequence for reaching a protected page, alter a detector result, or recommend changing signals until a target accepts a session. The output is a maintenance comparison and a record design for owned tests. When a site denies access, respect its policy and use an approved integration or permission path.

FAQ

Does the README prove a current release works everywhere?

No. It documents the project's stated goal and implementation summary. It does not provide a complete dated matrix of service versions, accounts, browser builds, and environments that would support a universal result.

Does a returned WebDriver capability prove that a profile loaded?

No. A capability is session information returned through WebDriver. Profile loading is a separate browser-startup fact and needs the product's supported evidence.

Is navigator.webdriver a detector score?

No. MDN describes it as a browser property indicating automation control. A page can observe the property, but the value does not encode a vendor's model or decision.

Can a local fixture tell what a commercial protection service will decide?

No. It can only verify the fixture's own contract under recorded conditions. An external service controls its inputs, policy, and outcome.

What belongs in a version comparison?

Record package and source revision, driver version, browser version, sanitized options, fixture revision, the observed API value, and the separate HTTP and schema outcomes. Change one input per comparison.

Next reading

For page-level JavaScript patch boundaries, see where browser patches stop; for profile inputs, see the Selenium profile integration reference.

Sources

Practical conclusion

Compare ownership before comparing claims. The repository README describes a package that downloads and patches a driver; Selenium records session negotiation; browser-layer profiles configure documented startup values; and an owned page reports only what it reads. Track those versions separately, change one controlled input at a time, and preserve a receipt that distinguishes browser startup, session negotiation, page observations, and application outcomes. None of those records proves identity or predicts a third-party verdict. Use the comparison to choose a maintainable, documented integration for an authorized workload, and stop at the site's access boundary.

#Undetected Chromedriver#Selenium#Browser Profiles#Browser Automation

This article is part of the guide: Browser Automation Getting Started: A First Run Map

Run the same check in BotBrowser

Load a profile, keep the signals you just read about consistent inside the browser, and confirm the result on your own machine before a rollout.