setVisibleSize

Deprecated

Deprecated in the Chrome DevTools protocol

Resizes the frame/viewport of the page. Note that this does not affect the frame's container (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android.

Official doc

Note: this function uses an input class, and constructing this class manually may lead to incompatibilities if the class's constructor arguments change in the future. For maximum compatibility, it is advised to use the overload of this function that directly takes the mandatory parameters as arguments, and the optional ones from a configuration lambda.


suspend fun setVisibleSize(width: Int, height: Int): SetVisibleSizeResponse

Deprecated

Deprecated in the Chrome DevTools protocol

Resizes the frame/viewport of the page. Note that this does not affect the frame's container (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android.

Official doc

Parameters

width

Frame width (DIP).

height

Frame height (DIP).