Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore(dotnet): do not rely on auto camel case for channel initializers (#13867)
Max Schmitt2dafbfc2dc37
diff --git a/utils/generate_dotnet_channels.js b/utils/generate_dotnet_channels.jsindex 64ffc248a4..6d0c462bc4 100644--- a/utils/generate_dotnet_channels.js+++ b/utils/generate_dotnet_channels.js@@ -114,6 +114,7 @@ function properties(properties, indent, onlyOptional) {if (onlyOptional && !inner.optional)continue;ts.push('');+ ts.push(`${indent}[JsonPropertyName("${name}")]`)ts.push(`${indent}public ${inner.ts}${nullableSuffix(inner)} ${toTitleCase(name)} { get; set; }`);const wrapped = inner.optional ? `tOptional(${inner.scheme})` : inner.scheme;scheme.push(`${indent}${name}: ${wrapped},`);@@ -183,6 +184,7 @@ for (const [name, item] of Object.entries(protocol)) {*/`)channels_ts.push('using System.Collections.Generic;');+ channels_ts.push('using System.Text.Json.Serialization;')channels_ts.push(``);channels_ts.push(`namespace Microsoft.Playwright.Transport.Protocol`);channels_ts.push(`{`);