mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs(dotnet): introduce separate csharp viewport option (#6198)
This commit is contained in:
parent
42a5566653
commit
90de864216
@ -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-%%
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user