docs(dotnet): fix code snippet typos (#7736)
This commit is contained in:
parent
c84c5c8c9b
commit
b56e2b713a
|
|
@ -77,8 +77,8 @@ await using var context = await browser.NewContextAsync();
|
||||||
// Start tracing before creating / navigating a page.
|
// Start tracing before creating / navigating a page.
|
||||||
await context.Tracing.StartAsync(new TracingStartOptions
|
await context.Tracing.StartAsync(new TracingStartOptions
|
||||||
{
|
{
|
||||||
Screenshots: true,
|
Screenshots = true,
|
||||||
Snapshots: true
|
Snapshots = true
|
||||||
});
|
});
|
||||||
|
|
||||||
var page = context.NewPageAsync();
|
var page = context.NewPageAsync();
|
||||||
|
|
@ -87,7 +87,7 @@ await page.GotoAsync("https://playwright.dev");
|
||||||
// Stop tracing and export it into a zip archive.
|
// Stop tracing and export it into a zip archive.
|
||||||
await context.Tracing.StopAsync(new TracingStopOptions
|
await context.Tracing.StopAsync(new TracingStopOptions
|
||||||
{
|
{
|
||||||
Path: "trace.zip"
|
Path = "trace.zip"
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue