Skip to content

Commit c550008

Browse files
authored
docs(dotnet): adds option parameters for csharp on element handle (#5823)
1 parent ae460f0 commit c550008

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

docs/src/api/csharp.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ The options that control custom behaviour when parsing the JSON.
1414
- returns: <[System.Net.HttpStatusCode]>
1515

1616
Gets the [System.Net.HttpStatusCode] code of the response.
17+
18+
### param: ElementHandle.selectOption.values = %%-csharp-select-options-values-%%
19+
### param: ElementHandle.setInputFiles.files = %%-csharp-input-files-%%

docs/src/api/params.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,24 @@ The default value can be changed by using the [`method: BrowserContext.setDefaul
519519
Maximum time in milliseconds, defaults to 30 seconds, pass `0` to disable timeout. The default value can be changed by
520520
using the [`method: AndroidDevice.setDefaultTimeout`] method.
521521

522+
## csharp-select-options-values
523+
* langs: csharp
524+
- `values` <[Array]<[Object]>>
525+
- `value` <[string]> Matches by `option.value`. Optional.
526+
- `label` <[string]> Matches by `option.label`. Optional.
527+
- `index` <[int]> Matches by the index. Optional.
528+
529+
Options to select. If the `<select>` has the `multiple` attribute, all matching options are selected, otherwise only the
530+
first option matching one of the passed options is selected. String values are equivalent to `{value:'string'}`. Option
531+
is considered matching if all specified properties match.
532+
533+
## csharp-input-files
534+
* langs: csharp
535+
- `files` <[Array]<[Object]>>
536+
- `name` <[string]> File name
537+
- `mimeType` <[string]> File type
538+
- `buffer` <[Buffer]> File content
539+
522540
## shared-context-params-list
523541
- %%-context-option-acceptdownloads-%%
524542
- %%-context-option-ignorehttpserrors-%%

0 commit comments

Comments
 (0)