Skip to content

docs: show native HTTPS HAR recording lifecycle - #280

Open
MagMueller wants to merge 1 commit into
browser-use:mainfrom
MagMueller:agency/har-current-20260914
Open

MagMueller wants to merge 1 commit into
browser-use:mainfrom
MagMueller:agency/har-current-20260914

Conversation

@MagMueller

@MagMueller MagMueller commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Clarifies the existing Python Browser HAR recorder: it captures HTTPS, writes the file on session stop, and omit mode removes request/response bodies but does not redact URLs or headers. Adds one local-browser example with a unique output directory and finally/kill cleanup.

Verified on Browser Use main 843819cb using owned loopback HTTP/TLS fixtures. HTTP rendered successfully but produced an empty HAR. HTTPS produced document and POST entries after shutdown. omit and embed behavior, retained synthetic headers/query, and process cleanup were exercised. The documented function also ran with only fixture URL/certificate/output-path adaptations. No model, Cloud API, or public website was used. This does not claim a complete all-tabs or worker archive.

The recipe is unchanged from the previously tested candidate. MDX parsing, Mint links, docs JSON and diff checks passed. One authored docs file only; generated exports removed upstream are not restored. No runtime or dependency change.


Summary by cubic

Clarifies the existing Python Browser HAR recorder docs: it captures HTTPS, writes the HAR when the browser session stops, and record_har_content='omit' removes request/response bodies without redacting URLs, query strings, or headers.

  • Adds a local-browser example using a fresh output directory and finally/kill cleanup.
  • Notes that HTTP-only visits can produce empty HAR files and that recording does not recover earlier traffic.

Written for commit 1671b31. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant