Skip to main content

SetViewport Activity

This activity configures the viewport size of the browser for the specified web page. It is used to control the visible area of the page and to simulate different screen resolutions during web automation.

Core Functions

  • Sets the viewport width and height.
  • Simulates different device or screen sizes.
  • Applies viewport settings to the specified page.

Inputs

  • Page: The web page instance whose viewport will be adjusted.
  • W:The viewport width in pixels.
  • H:The viewport height in pixels.

Outputs

  • None

Short Technical Summary Adjusts the viewport dimensions of the specified page to control layout and responsiveness in web automation scenarios.