Skip to content

[Bug]: record_har_omit_content does not work properly #958

@qwark97

Description

@qwark97

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions