getHostOS method

Class: ConfigurationPlatform: Selenium 4Language: JavaScript SDK:

Use this method to retrieve the name of the hosting operating system property.

The HostOS, along with the hosting app and viewport size, determines which baseline will be used as the basis for comparing checkpoint images. When running without the Ultrafast Grid, by default, Eyes uses the Operating System on which the test executes. When running a test using the Ultrafast Grid, the operating system depends on the browser configuration. The Test manager displays this value as the OS column.

Syntax


let configval = config.getHostOS();

Parameters

This method does not take any parameters.

Return value

Type: string