Class TracingStartOptions
- Namespace
- Microsoft.Playwright
- Assembly
- Microsoft.Playwright.dll
public class TracingStartOptions
- Inheritance
-
TracingStartOptions
- Inherited Members
Constructors
TracingStartOptions()
public TracingStartOptions()
TracingStartOptions(TracingStartOptions)
public TracingStartOptions(TracingStartOptions clone)
Parameters
clone
TracingStartOptions
Properties
Name
If specified, intermediate trace files are going to be saved into the files with
the given name prefix inside the tracesDir
folder specified in
LaunchAsync(BrowserTypeLaunchOptions?). To specify the final trace zip file name,
you need to pass path
option to StopAsync(TracingStopOptions?) instead.
[JsonPropertyName("name")]
public string? Name { get; set; }
Property Value
Screenshots
Whether to capture screenshots during tracing. Screenshots are used to build a timeline preview.
[JsonPropertyName("screenshots")]
public bool? Screenshots { get; set; }
Property Value
- bool?
Snapshots
If this option is true tracing will
- capture DOM snapshot on every action
- record network activity
[JsonPropertyName("snapshots")]
public bool? Snapshots { get; set; }
Property Value
- bool?
Sources
Whether to include source files for trace actions.
[JsonPropertyName("sources")]
public bool? Sources { get; set; }
Property Value
- bool?
Title
Trace name to be shown in the Trace Viewer.
[JsonPropertyName("title")]
public string? Title { get; set; }