Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HAR file recording #966

Open
jlogtenberg opened this issue Mar 7, 2025 · 0 comments
Open

HAR file recording #966

jlogtenberg opened this issue Mar 7, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@jlogtenberg
Copy link
Contributor

jlogtenberg commented Mar 7, 2025

Problem Description

To be able to use browser-use for network traffic analysis, it should be able to create a HAR file of all the requests and responses that it processes during the run.

Proposed Solution

Since Browser-Use makes use of Playwright under the hood, and Playwright supports creating a HAR file this can be easily implemented. To accomplish this, the variable record_har_path = FILE_PATH should be added to browser-use\browser\context.py in the function async def _create_context(self, browser: PlaywrightBrowser):. If this path can be provided in BrowserContextConfig, this will allow users to create their own browser with HAR file recording enabled.

Alternative Solutions

No response

Additional Context

@jlogtenberg jlogtenberg added the enhancement New feature or request label Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant