playwright-python icon indicating copy to clipboard operation
playwright-python copied to clipboard

[Docs]: browser.new_context(record_har_path=path) is hard to find in docs

Open simonw opened this issue 1 year ago • 1 comments

Page(s)

https://playwright.dev/python/docs/next/mock#mocking-with-har-files

Description

The browser.new_context(record_har_path=path) parameter is really useful, but it isn't mentioned on the page about mocking with HAR files, despite a section called Recording a HAR file.

The only mention I could find of that parameter was in the release notes from 1.23: https://playwright.dev/python/docs/next/release-notes#network-replay

simonw avatar Feb 13 '25 20:02 simonw

I just found a mention of record_har_path in the browser.new_context() documentation too, not sure how I missed that earlier - maybe because it didn't come up in search? https://playwright.dev/python/docs/next/api/class-browser#browser-new-context-option-record-har-path

simonw avatar Feb 13 '25 21:02 simonw