Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(dotnet): fix .NET code example (#9415)

Dmitry Anshilevich8ae926efbf43
diff --git a/docs/src/api/class-playwright.md b/docs/src/api/class-playwright.md
index ad6bb1c67e..2e52365123 100644
--- a/docs/src/api/class-playwright.md
+++ b/docs/src/api/class-playwright.md
@@ -163,7 +163,7 @@ class PlaywrightExample
{
using var playwright = await Playwright.CreateAsync();
await using var browser = await playwright.Webkit.LaunchAsync();
- await using var context = await browser.NewContextAsync(Playwright.Devices["iPhone 6"]);
+ await using var context = await browser.NewContextAsync(playwright.Devices["iPhone 6"]);
var page = await context.NewPageAsync();
await page.GotoAsync("https://www.theverge.com");
diff --git a/docs/src/core-concepts.md b/docs/src/core-concepts.md
index 1b9b7f99ac..9ce100426b 100644
--- a/docs/src/core-concepts.md
+++ b/docs/src/core-concepts.md
@@ -214,7 +214,7 @@ class PlaywrightExample
{
using var playwright = await Playwright.CreateAsync();
await using var browser = await playwright.Webkit.LaunchAsync();
- var options = new BrowserContextNewOptions(Playwright.Devices["iPhone 11 Pro"])
+ var options = new BrowserNewContextOptions(playwright.Devices["iPhone 11 Pro"])
{
Geolocation = new() { Longitude = 12.492507f, Latitude = 41.889938f },
Permissions = new[] { "geolocation" },