Playwright version
1.15.3
Operating system
Linux
What browsers are you seeing the problem on?
Chromium, Firefox, WebKit
Other information
Repo to present bug:
https://github.com/qwark97/har_omit_content_bug
Bug occurs also outside the docker image
What happened? / Describe the bug
Using record_har_omit_content as a new_page parameter can manipulate presence of the text filed inside entry.response.content object in .har file.
Not using this parameter (defaults to False https://playwright.dev/python/docs/api/class-browser#browser-new-page) allows to see text inside .har file. Using record_har_omit_content=True also works as expected - text is absent. Unfortunatelly, passing record_har_omit_content=False explicitely does not work as expected -> .har file will not contain text filed.
It also looks like passing anything except explicit None as a record_har_omit_content value (type doesn't matter) will cause with missing text filed
Code snippet to reproduce your bug
No response
Relevant log output
No response
Playwright version
1.15.3
Operating system
Linux
What browsers are you seeing the problem on?
Chromium, Firefox, WebKit
Other information
Repo to present bug:
https://github.com/qwark97/har_omit_content_bug
Bug occurs also outside the docker image
What happened? / Describe the bug
Using
record_har_omit_contentas anew_pageparameter can manipulate presence of thetextfiled insideentry.response.contentobject in.harfile.Not using this parameter (defaults to
Falsehttps://playwright.dev/python/docs/api/class-browser#browser-new-page) allows to seetextinside.harfile. Usingrecord_har_omit_content=Truealso works as expected -textis absent. Unfortunatelly, passingrecord_har_omit_content=Falseexplicitely does not work as expected ->.harfile will not containtextfiled.It also looks like passing anything except explicit
Noneas arecord_har_omit_contentvalue (type doesn't matter) will cause with missingtextfiledCode snippet to reproduce your bug
No response
Relevant log output
No response