@@ -214,15 +214,23 @@ Whether to ignore HTTPS errors during navigation. Defaults to `false`.
214
214
Toggles bypassing page's Content-Security-Policy.
215
215
216
216
## context-option-viewport
217
- * langs: js, java, csharp
217
+ * langs: js, java
218
218
- alias-java: viewportSize
219
- - alias-csharp: viewportSize
220
219
- ` viewport ` <[ null] |[ Object] >
221
220
- ` width ` <[ int] > page width in pixels.
222
221
- ` height ` <[ int] > page height in pixels.
223
222
224
223
Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. ` null ` disables the default viewport.
225
224
225
+ ## csharp-context-option-viewport
226
+ * langs: csharp
227
+ - alias-csharp: viewportSize
228
+ - ` viewport ` <[ null] |[ Object] >
229
+ - ` width ` <[ int] > page width in pixels.
230
+ - ` height ` <[ int] > page height in pixels.
231
+
232
+ Emulates consistent viewport for each page. Defaults to an 1280x720 viewport. Use ` ViewportSize.NoViewport ` to disable the default viewport.
233
+
226
234
## context-option-screen
227
235
* langs:
228
236
- alias-java: screenSize
@@ -565,6 +573,7 @@ is considered matching if all specified properties match.
565
573
- %%-context-option-ignorehttpserrors-%%
566
574
- %%-context-option-bypasscsp-%%
567
575
- %%-context-option-viewport-%%
576
+ - %%-csharp-context-option-viewport-%%
568
577
- %%-python-context-option-viewport-%%
569
578
- %%-context-option-screen-%%
570
579
- %%-python-context-option-no-viewport-%%
0 commit comments