Skip to content

Commit

Permalink
docs(dotnet): introduce separate csharp viewport option (#6198)
Browse files Browse the repository at this point in the history
  • Loading branch information
avodovnik committed May 5, 2021
1 parent 42a5566 commit 90de864
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/src/api/params.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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-%%
Expand Down

0 comments on commit 90de864

Please sign in to comment.