getHostDisplaySize method

Class: TestResultsPlatform: PlaywrightLanguage: JavaScript SDK:

Use this method to retrieve the viewport size used to identify the baseline.


let value = result.getHostDisplaySize();
value = result.hostDisplaySize;

Note that this feature is available as both a method and a property.


This method does not take any parameters.

Return value

Type: RectangleSize
The host display size.