chore: remove input files and selected option overrides (#6665)
This commit is contained in:
parent
1f22673c29
commit
e679d99421
|
|
@ -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.
|
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.
|
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-%%
|
|
||||||
|
|
|
||||||
|
|
@ -464,7 +464,7 @@ contexts override the proxy, global proxy will be never used and can be any stri
|
||||||
:::
|
:::
|
||||||
|
|
||||||
## select-options-values
|
## select-options-values
|
||||||
* langs: java, js
|
* langs: java, js, csharp
|
||||||
- `values` <[null]|[string]|[ElementHandle]|[Array]<[string]>|[Object]|[Array]<[ElementHandle]>|[Array]<[Object]>>
|
- `values` <[null]|[string]|[ElementHandle]|[Array]<[string]>|[Object]|[Array]<[ElementHandle]>|[Array]<[Object]>>
|
||||||
- `value` <[string]> Matches by `option.value`. Optional.
|
- `value` <[string]> Matches by `option.value`. Optional.
|
||||||
- `label` <[string]> Matches by `option.label`. 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
|
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.
|
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
|
## shared-context-params-list
|
||||||
- %%-context-option-acceptdownloads-%%
|
- %%-context-option-acceptdownloads-%%
|
||||||
- %%-context-option-ignorehttpserrors-%%
|
- %%-context-option-ignorehttpserrors-%%
|
||||||
|
|
|
||||||
|
|
@ -546,6 +546,8 @@ function renderMethod(member, parent, name, options, out) {
|
||||||
* @param {boolean} isExploded
|
* @param {boolean} isExploded
|
||||||
*/
|
*/
|
||||||
function pushArg(innerArgType, innerArgName, argument, isExploded = false) {
|
function pushArg(innerArgType, innerArgName, argument, isExploded = false) {
|
||||||
|
if (innerArgType === 'null')
|
||||||
|
return;
|
||||||
const isNullable = nullableTypes.includes(innerArgType);
|
const isNullable = nullableTypes.includes(innerArgType);
|
||||||
const requiredPrefix = (argument.required || isExploded) ? "" : isNullable ? "?" : "";
|
const requiredPrefix = (argument.required || isExploded) ? "" : isNullable ? "?" : "";
|
||||||
const requiredSuffix = (argument.required || isExploded) ? "" : " = default";
|
const requiredSuffix = (argument.required || isExploded) ? "" : " = default";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue