Interaction
Set the page viewport size
Physically resizes the page via Playwright's page.setViewportSize, triggering a real layout reflow. Use for responsive testing — window.resizeTo() is a no-op on non-popup windows.
post/tabs/{tabId}/viewport
Path parameters
tabIdstring required
Request body
Response
Viewport set.
Changes
Changed in 2 of the 49 revisions of this API.11
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲