setStitchMode method

Class: ConfigurationPlatform: PlaywrightLanguage: JavaScript SDK:

Use this method to set the type of stitching used for full page screenshots.

Syntax

let configval = config.setStitchMode(stitchMode);
config.stitchMode = configval;
configval = config.stitchMode;

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

Parameters

stitchMode
Type:StitchMode
The stitch mode to use.

Return value

Type: Configuration
The value returned is the object that called the method. This allows you to use a fluent style to call the setXXXX methods of the Configuration class.