Skip to content

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

docs: fix C# and python snippets (#30232)

Yury Semikhatsky7ad255301f50
diff --git a/docs/src/api/class-browsercontext.md b/docs/src/api/class-browsercontext.md
index 8dde2c031b..511f3db10c 100644
--- a/docs/src/api/class-browsercontext.md
+++ b/docs/src/api/class-browsercontext.md
@@ -91,9 +91,9 @@ background_page = context.wait_for_event("backgroundpage")
```
```csharp
-context.BackgroundPage += (backgroundPage) =>
+context.BackgroundPage += (_, backgroundPage) =>
{
- Console.WriteLine(backgroundPage.Url());
+ Console.WriteLine(backgroundPage.Url);
};
```