Interface ITracing
- Namespace
- PuppeteerSharp
- Assembly
- PuppeteerSharp.dll
You can use StartAsync(TracingOptions) and StopAsync() to create a trace file which can be opened in Chrome DevTools or timeline viewer.
public interface ITracing
Examples
await Page.Tracing.StartAsync(new TracingOptions
{
Screenshots = true,
Path = _file
});
await Page.GoToAsync(TestConstants.ServerUrl + "/grid.html");
await Page.Tracing.StopAsync();
Methods
StartAsync(TracingOptions)
Starts tracing.
Task StartAsync(TracingOptions options = null)
Parameters
options
TracingOptionsTracing options.
Returns
- Task
Start task.
StopAsync()
Stops tracing.
Task<string> StopAsync()