Table of Contents

Class PlaywrightCodegenImporter

Namespace
Cress.Importers.Playwright
Assembly
Cress.Importers.dll

Converts a Playwright codegen .ts or .js file into a CressFlow. Uses lightweight regex matching — not a full TypeScript/JavaScript parser. Handles the predictable shape produced by playwright codegen.

public sealed class PlaywrightCodegenImporter
Inheritance
PlaywrightCodegenImporter
Inherited Members

Methods

Import(string, string?)

Parse codegenText (Playwright codegen .ts/.js file content) and return a CressFlow ready for serialization.

public CressFlow Import(string codegenText, string? flowName = null)

Parameters

codegenText string

Full file contents.

flowName string

Optional override for the flow name; derived from test name otherwise.

Returns

CressFlow