Skip to content

swelancer user_tool files call non-existent playwright function #99

@MattFisher

Description

@MattFisher

Observed behaviour

Error during a run of sample 16912_4:

            context.tracing.stop()
>           context.tracing.export(trace_path)
E           AttributeError: 'Tracing' object has no attribute 'export'

issues/16912_4/user_tool.py:68: AttributeError
=========================== short test summary info ============================
FAILED issues/16912_4/user_tool.py::test_unknown_user_profile_load_offline - ...
============================== 1 failed in 51.69s ==============================

The trace file is not written to the container at "/app/expensify/user_tool/output_browser1.zip"

Several of the user_tool.py files in swelancer call context.tracing.export(export_path), which is calling export() on a playwright Tracing object.

The version of playwright installed in the docker containers is 1.47.0, pinned in requirements.txt

The first commit that introduced tracing in playwright-python included Tracing.export(), but this was removed before the release of v1.12.0 and has not been restored.

The equivalent call for v1.47.0 would be context.tracing.stop(path=trace_path) docs

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