docs(dotnet): introduce separate csharp viewport option (#6198)

This commit is contained in:
Anže Vodovnik 2021-05-05 22:13:18 +02:00 committed by GitHub
parent 42a5566653
commit 90de864216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,15 +214,23 @@ Whether to ignore HTTPS errors during navigation. Defaults to `false`.
Toggles bypassing page's Content-Security-Policy.
## context-option-viewport
* langs: js, java, csharp
* langs: js, java
- alias-java: viewportSize
- alias-csharp: viewportSize
- `viewport` <[null]|[Object]>
- `width` <[int]> page width in pixels.
- `height` <[int]> page height in pixels.
Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. `null` disables the default viewport.
## csharp-context-option-viewport
* langs: csharp
- alias-csharp: viewportSize
- `viewport` <[null]|[Object]>
- `width` <[int]> page width in pixels.
- `height` <[int]> page height in pixels.
Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. Use `ViewportSize.NoViewport` to disable the default viewport.
## context-option-screen
* langs:
- alias-java: screenSize
@ -565,6 +573,7 @@ is considered matching if all specified properties match.
- %%-context-option-ignorehttpserrors-%%
- %%-context-option-bypasscsp-%%
- %%-context-option-viewport-%%
- %%-csharp-context-option-viewport-%%
- %%-python-context-option-viewport-%%
- %%-context-option-screen-%%
- %%-python-context-option-no-viewport-%%