getHostDisplaySize method

Class: TestResultsPlatform: NightwatchLanguage: JavaScript SDK:

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

Syntax

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

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

Parameters

This method does not take any parameters.

Return value

Type: RectangleSize
The host display size.