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

Add a new --save-har=my.har option to save requests to HAR file #146

Open
asg017 opened this issue Mar 9, 2024 · 0 comments
Open

Add a new --save-har=my.har option to save requests to HAR file #146

asg017 opened this issue Mar 9, 2024 · 0 comments

Comments

@asg017
Copy link

asg017 commented Mar 9, 2024

Playwright has support for HAR files, which saves all network requests during a session to a custom file format.

The API is awkward but we can use route_from_har. We'll need to add update=True to save requests to the file, instead of "serveing" them.

There's a few more options to:

  • update_content: "embed"|"attach". Maybe --har-content=embed?
  • update_mode: "full"|"minimal". Maybe --har-mode=full?
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

No branches or pull requests

1 participant