Skip to content

[Feature]: Save code output file when launching recorder App #41564

Description

@ATarring

🚀 Feature Request

Playwright.ps1 codegen allows for an -output param to specify an automatic output file without user interaction on tha inspector UI save button.

Can we exend this function to the Recorder App and through page.PauseAsync() in Playwright-dotnet

Example

Primarily in playwright-dotnet allow page.PauseAsync() to be overloaded with output parameter like so:

page.PauseAsync("./folderLocation/output.cs")

Motivation

The functionality already exists n the recorder App this and is available in tools like playwright.ps1, the parameters just need to be extended out to the protocol validator to allow consuming tools to pass the param.

I currently have a need to pass this output via the Playwright .net libraries page.PauseAsync() method to enable automatic codegen file saving, which programatically inaccessable currently.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions