Skip to content

ITracing

Namespace: PuppeteerSharp

public interface ITracing

You can use StartAsync(TracingOptions) and StopAsync() to create a trace file which can be opened in Chrome DevTools or timeline viewer.

Derived: Tracing

Example

await Page.Tracing.StartAsync(new TracingOptions
{
Screenshots = true,
Path = _file
});
await Page.GoToAsync(TestConstants.ServerUrl + "/grid.html");
await Page.Tracing.StopAsync();

View source

Made with love by Dario Kondratiuk