setScaleRatio method

Class: ConfigurationPlatform: PlaywrightLanguage: JavaScript SDK:

Use this method to set the scale ratio to be applied to images before matching.

Syntax

let configval = config.setScaleRatio(scaleRatio);
config.scaleRatio = configval;
configval = config.scaleRatio;

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

Parameters

scaleRatio
Type:number
The scale ratio to use.

Return value

Type: Configuration