Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: spread parameters of page.setViewportSize in java (#5664)

Yury Semikhatskycad763491e75
diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.md
index 9978dd333b..554cc0813c 100644
--- a/docs/src/api/class-page.md
+++ b/docs/src/api/class-page.md
@@ -2363,10 +2363,19 @@ page.goto("https://example.com")
```
### param: Page.setViewportSize.viewportSize
+* langs: js, python
- `viewportSize` <[Object]>
- `width` <[int]> page width in pixels.
- `height` <[int]> page height in pixels.
+### param: Page.setViewportSize.width
+* langs: csharp, java
+- `width` <[int]> page width in pixels.
+
+### param: Page.setViewportSize.height
+* langs: csharp, java
+- `height` <[int]> page height in pixels.
+
## async method: Page.tap
This method taps an element matching [`param: selector`] by performing the following steps: