Skip to content

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

chore: remove input files and selected option overrides (#6665)

Pavel Feldmane679d9942197
diff --git a/docs/src/api/csharp.md b/docs/src/api/csharp.md
index a710fda2c6..f0d8008f09 100644
--- a/docs/src/api/csharp.md
+++ b/docs/src/api/csharp.md
@@ -6,12 +6,3 @@ Returns parsed request's body for `form-urlencoded` and JSON as a fallback if an
When the response is `application/x-www-form-urlencoded` then a key/value object of the values will be returned.
Otherwise it will be parsed as JSON.
-
-### param: ElementHandle.selectOption.values = %%-csharp-select-options-values-%%
-### param: ElementHandle.setInputFiles.files = %%-csharp-input-files-%%
-
-### param: Frame.selectOption.values = %%-csharp-select-options-values-%%
-### param: Frame.setInputFiles.files = %%-csharp-input-files-%%
-
-### param: Page.selectOption.values = %%-csharp-select-options-values-%%
-### param: Page.setInputFiles.files = %%-csharp-input-files-%%
diff --git a/docs/src/api/params.md b/docs/src/api/params.md
index d6f4e37285..0879764270 100644
--- a/docs/src/api/params.md
+++ b/docs/src/api/params.md
@@ -464,7 +464,7 @@ contexts override the proxy, global proxy will be never used and can be any stri
:::
## select-options-values
-* langs: java, js
+* langs: java, js, csharp
- `values` <[null]|[string]|[ElementHandle]|[Array]<[string]>|[Object]|[Array]<[ElementHandle]>|[Array]<[Object]>>
- `value` <[string]> Matches by `option.value`. Optional.
- `label` <[string]> Matches by `option.label`. Optional.
@@ -556,24 +556,6 @@ The default value can be changed by using the [`method: BrowserContext.setDefaul
Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by
using the [`method: AndroidDevice.setDefaultTimeout`] method.
-## csharp-select-options-values
-* langs: csharp
-- `values` <[Array]<[Object]>>
- - `value` <[string]> Matches by `option.value`. Optional.
- - `label` <[string]> Matches by `option.label`. Optional.
- - `index` <[int]> Matches by the index. Optional.
-
-Options to select. If the `<select>` has the `multiple` attribute, all matching options are selected, otherwise only the
-first option matching one of the passed options is selected. String values are equivalent to `{value:'string'}`. Option
-is considered matching if all specified properties match.
-
-## csharp-input-files
-* langs: csharp
-- `files` <[Array]<[Object]>>
- - `name` <[string]> File name
- - `mimeType` <[string]> File type
- - `buffer` <[Buffer]> File content
-
## shared-context-params-list
- %%-context-option-acceptdownloads-%%
- %%-context-option-ignorehttpserrors-%%
diff --git a/utils/doclint/generateDotnetApi.js b/utils/doclint/generateDotnetApi.js
index 0a7e31e37b..159325095e 100644
--- a/utils/doclint/generateDotnetApi.js
+++ b/utils/doclint/generateDotnetApi.js
@@ -546,6 +546,8 @@ function renderMethod(member, parent, name, options, out) {
* @param {boolean} isExploded
*/
function pushArg(innerArgType, innerArgName, argument, isExploded = false) {
+ if (innerArgType === 'null')
+ return;
const isNullable = nullableTypes.includes(innerArgType);
const requiredPrefix = (argument.required || isExploded) ? "" : isNullable ? "?" : "";
const requiredSuffix = (argument.required || isExploded) ? "" : " = default";