setStitchMode method

Class: ConfigurationPlatform: PlaywrightLanguage: JavaScript SDK:

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


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

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


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.